There is compensation. Generally, (correct me if I'm wrong) if the cancellation is not an act-of-god, wars, or anything beyond the airline's control, you will compensated. So, some form of compensation will be given for maintenance, crew not being at the airport, plane not being at the airport, etc.