The Buddha taught the meditation on the ugliness of the body, then left to go on retreat. However, many monks, misconstruing the teachings, ended up killing themselves. The Buddha taught breath meditation as a peaceful and pleasant alternative.