They pay attention to viewership, sure.
But there is a long history of media moguls sacrificing short-term profitability for political purposes.
There’s also the point that, even when the decision to promote right wing crap is short-term profit-driven, it’s still a choice made by the ownership. Shitty media is created by the choices of shitty people, not by an irresistible response to the market.