Can you explain how nipple stimulation works?

(In regards to inducing labor) 
Just curious to know !! Thanks