The article doesn't state that "astronomy" as a whole was invented by Galileo, but rather that the moon itself was never studied scientifically until his time. That's a patently false statement that requires dismissing the millennia of Indian observations and research on the moon. I'm pretty sure we could make similar arguments for the Middle East or Asia.
It's like when they teach that everyone thought the world was flat back then. They didn't. That's a fairy tale. Some people thought that, but the idea that the Earth was in fact round was not a shocking finding to contemporary people.
Likewise, geology as a field may have begun in the 1800s, but you wouldn't claim that no one tried to study any aspect of the earth before then. And if you did, I would describe that as being at least ignorant of Eratosthenes. (Actually, no I wouldn't, because I almost certainly wouldn't have thought of that precise example. But I digress.)
Is the issue that "racist" just seems too harsh of a label for what may be a simple error? One can definitely argue there is a western bias in claiming Galileo as the starting point for studying the moon. Maybe conflating "western bias" with "racism" is a step too far.