I guess I was mistaken. I thought there was a separate compartment for pets aboard flights. That's what I assumed people were doing when they passed their dog-in-crate to the airline employee
Animals that are small enough can travel in-cabin for an extra fee, generally in a crate under the seat, while larger animals fly in hard crates in the cargo area.