Wrong orientation in Align View to Active

What determines camera’s orientation in View > Align View > Align View to Active?

Top option always put camera upside down for some reasons.

image
image