Why do companies often promote toxic bosses despite the negative impact on employees and productivity?

It feels so counterintuitive, leaders who micromanage, belittle employees or create hostile work environments. It just seems to hurt morale and lead to turnover. Do they not notice the behaviour? Is it about short term goals? Love to hear others thoughts as it is feeling very frustrating!