EU and other countries like Indonesia have laws that do exactly this. Light touch regulation really. Airlines can plan as they wish, but if you leave passengers stranded (or massively delay their journey) you have to pay the customer directly.
See EU 261: https://help.ryanair.com/hc/en-us/articles/360017825538-EU-2...
See Indonesia: https://www.balidiscovery.com/delayed-flights-know-your-righ...