Price segmentation.
Businesses love to do that. Get the people who can pay more, to pay more while still letting the people who need to pay less, pay less. Not a perfect science but airlines segment passengers into business travelers and leisure travelers where the former can typically afford higher fares than the latter. They try to segment the two by using weekend stays and last minute bookings as differentiatiors. Not a perfect method but it works for the most part.