It's the same as '' an other instead of a other'', since two vowels are connected to each other (the H is not considered since we do not pronounce it), we use the contraction to get rid of it. Of course, there are some exceptions, but most of them will be like that.
Hoping this is clear enough.