This is a very important distinction. Anti-vaxxers often misrepresent this method of immune system building to justify allowing dangerous infections to spread. It's like saying:
"Exercise technically damages your muscles so your body builds them back stronger... so I don't need to take precautions against injuring myself at the gym."
Most infections are benign, but you should absolutely still get yourself and your children vaccinated against the ones that aren't.