Why does a Mandir (Temple) have to face a certain direction?

will populate later