Why is it profitable for outdated airliners to…

Why is it profitable for outdated airliners to be ran as cargo jets but not as passenger jets?