I'm not a moderator on SO, so I can't speak to why a moderator considered this comment "not nice." But it may be worth looking at the term "cargo cult," which has come to be considered (at least by some) as reductive, dismissive, or even racist, all of which a reader could consider to be "not nice."
NOTE: I am NOT implying that you intended to make any racist or otherwise offensive remarks.
Wikipedia is more eloquent than I am here, so I'll quote them (emphasis mine):
The term cargo cult as an idiom originally referred to aboriginal religions that grew up in the South Pacific after World War II. The practices of these groups centered on building elaborate mock-ups of airplanes and military landing strips in the hope of summoning the god-like beings who arrived in airplanes that had brought marvelous cargo during the war. In recent decades, anthropology has distanced itself from the term “cargo cult,” which is now seen as having been reductively applied to a lot of complicated and disparate social and religious movements that arose from the stress and trauma of colonialism, and sought to attain much more varied and amorphous goals—things like self-determination—than material cargo.
Again, whether this played into your specific situation, I haven't the faintest idea. But when writing in a public, moderated forum, it's worth considering how other readers (including, but not limited to, site moderators) can bring different contexts to their reading, which sometimes greatly changes the meaning from what you originally intended to say.
Note: I'm not trying to start a thread about racism, or free speech, or wokeness, etc... and I hope that's not what people do below this post... I read the Git mail list thread about renaming the default branch from "master," which got a bit ugly and I don't want to see anything like that form in the comments... and if it does, I'll probably delete the answer.