Buddhism not only promised salvation but also magical powers of healing, and rulers could style themselves as living Buddhas. That is why they sponsored the building of temples and formation of a Buddhist religious order. Confucianism, on the other hand, provided models of civility, courtly etiquette, and bureaucratic governance for ruling elites, and rulers could style themselves in Chinese fashion as sovereign monarchs. Hence, Confucian academies were established to train students of aristocratic families for service.
Confucianism was seen for higher elites to be educated on while, Buddhism on the other hand was just a more peaceful way of living.