National TV revenue - FOX, ESPN, Apple TV - is shared among all the teams whether they play in those games or not. But teams keep 100% of their local TV deals.
Some teams are owned by media outlets or own their media (ex. The Yankees and the YES network). But I don’t think that should exempt them from paying other teams that they put on the air…