To my understanding, moisturising softens the skin which makes it easier for hair to penetrate it thus reducing the chance of strands being trapped under your skin causing ingrowns.
Though, exfoliation also is important to remove dead skin cells and free trapped strands.