The men of A Doll's House are obsessed with their reputation. Some have good standing in their communities and will do anything to keep it, others have lost their good name and will do anything to get it back. Though the play is set in the living room of a private residence, the public eye is constantly peeking through the curtains.
Maintaining the respect of the community seems to be closely tied into maintaining the community's prescribed gender roles.
Krogstad and Torvald are both driven by fear of unfavorable public opinion.