Another way to say "baking a cake is for a special occasion." is "People bake cakes for birthdays and anniversaries."