I'm not an Islamic scholar, but don't Muslims pray facing Mecca? may explain the building's orientation.