Mathematics to the Greeks was "mathematics" in the sense we understand it today. From a system of axioms they derived a complex system of theorems, which allowed for an abstract description of reality. It was mathematics as a system of truth, which then could be used for other purposes. E.g. with Archimedes who discovered integration, but also was a prolific engineer.
The Greeks were so far ahead of anything the Mesopotamians did, that even the comparison is unfair.
The comparison does make sense if you interpret the parent’s post simply to state that Babylonian mathematics (in Mesopotamia) were developed (and seemingly stagnated) before Greek mathematics began in earnest. Which seems to be pretty uncontroversial. There are extant clay tablets from 1800 to 1600 BC that would indeed predate the Greek Geometers by a millennia — and that’s if you’re counting Thales as the beginning.
Ie. your parent post is using “ahead of” == “temporally before” not as in “more advanced”.