In India, there is a lot of competition in the tech field so devs often want to put open-source contributions on their resume. This definitely does not account for the majority of the spam, but could possibly be a sizeable minority of it.
I don’t require it, but I definitely look at applicants profiles. Of course, if I see lots of spurious and stupid commits that’s a negative and worse than nothing at all.