Believe it or not, part of it stems from sensory challenges.
One set of challenging kids has problems with the feel of water and/or soap on their skin (overactive sensory system).
And the other set doesn't feel dirty, or smell it for that matter (underactive sensory system).