I haven't looked at a McDonalds franchise contract, but every QSR franchise contract I've seen requires the franchisee to pay the brand a percentage of each location's gross sales.
Broken ice cream machine = less gross sales. Less gross sales = less money going to the brand.
It's also not great for customer satisfaction.