To take your examples concretely – sure, you won't see your pay docked, but you may find that the teammate who does bring their spouse along and participates in the bullshit rituals gets consistent pay rises that you don't.
Or at least, this used to happen routinely prior to the pandemic making it impractical to conduct such affairs unnecessarily blending work and life. Yet another reason why a lot of management is itching to "get back to the office".