There are indeed many other things to take in to consideration. And I am sure that the airlines who have been doing this planning for years and years have good reasons for their choices.
I think Qantas do maintenance checks in LAX so they use the time more effectively than just idling. They used to at least, not sure if they stil do.