Another way to say "dressing nice is for going out" is "When you go out, you may want or need to dress nicely"