To get your Sim doing yoga in The Sims 2, it helps to first make sure their needs are met. There's usually a minimum mood level required, so satisfy their basic needs and maybe a few wants to get them into the right frame of mind.
Once your Sim is in a good mood, click on them and look through the menu for the Yoga option. With their needs taken care of, the interaction should become available.