The story
A backformation from MACHO, where the "A" originally was the second letter in the word "massive", in "MAssive Compact Halo Object", to provide a separate word to fill in the "A" in the acronym, using "astronomical"
Etymology from Wiktionary, CC BY-SA 4.0.