Here's why:
* Metaphor: A figure of speech that compares two unlike things without using "like" or "as".
* In this case: "Months" are being compared to something that can fly (like a bird). This implies that time passed quickly, just as a bird flies through the air.
The phrase doesn't literally mean that months were flying, but it creates a vivid image and emphasizes the rapid passage of time.