My uncle used to be a Service Director for a car dealership that was was well known for their service quality. This was an old dealership and not one of the places on 'auto row' a few miles away.
My uncle refused any warranty work for vehicles purchased from the local auto row dealerships. He explained if you wanted a longstanding service relationship with the dealership, then you should have considered that when you made your purchase.
Lots of people were unhappy. However, they were NOT his customers! They had never spent a dime with his dealership, so he had no real care if they took their business elsewhere. They would prattle on about being a 'potential customer' and he would remind them when they had the opportunity to be an 'actual customer' they went to someone else.
Of course, he never applied this policy to someone traveling from out-of-town with an at-need situation. Just local people who bought elsewhere and then came to him for the quality service under warranty.
Yes, it is a financial thing. The manufacturer pays a pittance for warranty repairs, expecting the dealership to shoulder some of the expense out of the profit from the original sale.