Breaking a racquet out of anger or frustration is a common sight in tennis, both on the men and women's tours. They normally get a code violation or monetary fine for doing so, sometimes both.
I can understand wanting to punish players for damaging the court surface or the venue, but why do they still get penalized if they, for example, bend and break the racquet against their knee? Like this https://www.tennisworldusa.org/tennis/videos/Tennis_Stories/56756/stan-wawrinka-breaks-racket-through-knee/
The reason for the code violation is usually labeled as "racquet abuse", so it seems like they don't care how the racquet is broken, but only that it is broken.
Why do they only penalize racquet abuse? Why does the tournament care how a player treats their own equipment? What if, for example, the player rips their clothing out of frustration? As long as they aren't harming anyone or damaging the tournament property, why do they care?