Which is why they check your passport/visa/id just before you board.
Let's face it, anyone that did this would be very unlikely to ever want to travel on said airline (or any airline) ever again. It's probably not necessary to include it on the list, but it keeps the lawyers employed.