It's the same here in Australia. Train and tram drivers are paid mega bucks with their allowances for outside 9-5 working hours/weekends/public holidays, same hours pilots work roughly. Even during the worlds longest lockdowns over the last 2 years here in Melbourne trains and trams ran to normal schedule, despite no one being allowed out of their homes, this didn't happen with pilots.
Union strength is the reason. Pilot unions are powerless for reasons stated above.