Another way to say "People dress up for fancy dinners." is "Something that people do for fancy dinners is to dress up."