There were a number of reasons, mostly that a woman could not get pregnant again while breastfeeding, and it was considered her main function to churn out as many children as possible. Plus upper class women, especially royalty, had social duties and breastfeed was a time-consuming process that took away from that.
Anne Boleyn caused a small scandal when she wanted to nurse her daughter Elizabeth herself, but wasn’t allowed to.