When does a math research paper get uploaded into arXiv math.GM, the general mathematics section? I have seen some papers in math.GM claiming to have solved some open problem (which are obviously wrong). Besides this what would be the other reasons?
As far as I know, this may happen in two ways:
The author (or authors) of the paper barely knows what they are doing, hence, cannot figure out what kind of math category their work belongs to and use GM. A variation on this theme is that they wrongly assume that classifying their work as GM, increases the readership (in fact, the opposite is true).
The decision to reclassify the work as GM is made by arXiv moderators, who sense that the paper is junk but are not entirely sure; hence, instead of rejecting the paper outright, they do the reclassification (see this Wikipedia article about the arXiv).
A serious mathematician will not use the GM category.