It's not an act of conformity in that context, but it's usually an act of conformity. The most likely explanation I can see for someone dressing formally in an informal environment is a habit of conformity coupled with an insensitivity to change in social environment, neither of which seems like a desirable quality.