It makes no sense tome that anyone would expect a Ukrainian cargo plane to be at cruising altitude about to cross into Russian air space.
The operators were not thinking like you.