When sex is done casually, it takes away the sanctity of a human soul. You start seeing people as objects. Empathy and compassion are replaced by lust and impulse.
On men, this problem manifests as objectification of women. He mentally undresses every woman he meets and cannot relate to them with any depth.
On one hand we are told not to judge people by their past because everyone deserves a second chance, and nobody is innocent. But we are also told to do due diligence before we commit. Where does the balance lie with something as sensitive as body count? If I don't have a high body count or many exes because I had a fairly protected childhood, should I worry about my partner's body count of, say, 10?
The real issue is not body count but psychological damage. Every attach-and-detach experience leaves an emotional dent. Every intimacy without commitment forces the heart to feel deeply but without attaching. This is against nature and to survive, the nervous system learns to never open up. Henceforth, the person starts going through the motions of a relationship without emotion. If you stick a cello tape the first time, it attaches very well. You could even remove it and stick it again once or twice and it works. But if you do that 10 times, it loses its adhesive properties. Human hearts are living and able to renew themselves, obviously, but the damage is real, and not everyone heals.