They do it to those in training so they understand the pain it causes and so a deputy won't go around pepper spraying people unless they actually need it. Basically it sends them a message that you can't just whip out a taser or pepper spray and hit/spray someone for something minor. They want the deputies to know how much pain it inflicts so they wont overuse their priveleges.