The need for social order helped The belief systems
During that period of time, China constantly undergone one revolution to another and usually follow by a radical change in the government. This lead to social disorder in Chinese society at that time.
Confucianism and Buddhism promote the idea that people should control themselves in pursuing desire such as money and power to start focus on improving themselves and the social order around them.