Why do u pump

Ftm new to breastfeeding y do people pump and is it painful