I do not remember being taught to design any public space in ugly or anti-human ways. In fact I strongly suspect that I attended hundreds of hours of lectures on and had my coursework graded on how to competently do the opposite.
that may be so, but there are plenty of examples of the opposite to prevent people from using the space. starting with armrests in the center of a bench to prevent people from lying down on them, benches made with a metal grid so that they don't keep you warm when it's cold outside, all the way to spikes on any surface that would otherwise invite people to go there, sit down or play.
designing public spaces in anti-human ways is most certainly happening.
I also found this line a bit alarming, in the general sense that the ways public places are useful to humans are often ugly from a city planning perspective. There are many beautiful and aesthetic cities planned from the ground up that are all but devoid of human activity because they just aren't designed to be useful to people on a fundamental level
As notes in the comments there, where this comes up, that a sort of design to prevent some people from preventing other people from enjoying the resource.
There are definite trade offs there, and the design isn't as useful for people that want to temporarily use the bench. The other side of that is preventing people from camping out and sleeping on the bench all or most the day, preventing anyone else from using it.
This too could be solved with additional "maintenance" cost, where that maintenance is people patrolling and preventing a few people from over-utilizing the resource and preventing others from using it. That's prohibitively expensive, or passing cost on to a different department (police) that doesn't have the time or money to take on that burden, so we instead have a less useful but cheaper alternative.