Management is well aware of what might happen. Financial incentives, however, are aligned with keeping costs as low as possible. And you are seen as cost. Even when you bring money in.
That means unless you have an offer on the table, ability to waste time is a secondary consideration.
For the record, I agree about the ability to waste time. I don't agree with assessment that management does not get it. They just act in their own short term interest.
That's the equivalent of hitting myself and my employer, just hitting them a little harder.
If I'm lazing around, I'm bored and not progressing as a developer. I don't know if you've ever had a job where you do nothing or very little, but it's torture. Plus, you run the risk of getting sticked right back for underperforming.
They can fire you, and they can delay advancement.
(Btw, you have an implicit stick about not working with as much motivation.)