I think it's motivated by anger, too. It's a foisting of their nakedness onto others.
I mean, it's flashing. We know about flashing. I think the word 'flashing' doesn't really quite convey the aggressiveness of the act, though. It does often look ridiculous, I'm sure many if not most women have stories about the pathetic flasher in the park and his unimpressive attempts to shock or intimidate.
But of course we also, unfortunately, have the horrible story of Wayne Couzens.
Flashing isn't nothing. Most of the time it's unlikely to escalate. But it is a red flag.