The people that say this simply rationalize it differently than people willing to say it is about the money. (but yes, there is a group where it really isn't about money)
There is a large segment of the population that feels a stigma for admitting monetary motivation, so if its not "ALL" about the money, where all possible factors are money, they will say it isn't.
People that don't feel a stigma around admitting monetary motivation will reveal that money is a factor if it is at least 1 of the factors. It will be misinterpreted by the other population as being only about the money, whether it is or isn't.
It is just a form of conditioning that will distort any survey for now.
I happily admitted if someone offered me %30+ more money I would think hard about leaving. I remember telling my boss that exact thing at the time and he understood. The honesty is one of the reasons I enjoyed the job.
Often time's it's not actually about the money. But the low pay (relatively) is a signal to the developer of how much / little you value them.