As Gautam Buddha grew up, he realized the miseries of the people around him. He strictly disliked the caste and creed system. He was keen to change that system. So he left the royal palce at the age of 29 to get spiritual knowledge and change the system