Any well known business will have contingency built into their budget (their costing model) for such occurrences.
When they become necessary, provided the budgeting was realistic, then they cost nothing above that which was anticipated.
If per chance they do not occur then the company, airline or otherwise, gets to reap a bonus.