Pink was actually considered a bolder, stronger color while baby blue was considered very delicate and feminine. I am honestly not sure when nor why it changed.
Here's an excerpt from Wikipedia:
An article in the trade publication Earnshaw's Infants' Department
in June 1918 said: "The generally accepted rule is pink for the boys, and blue for the girls. The reason is that pink, being a more decided and stronger color, is more suitable for the boy, while blue, which is more delicate and dainty, is prettier for the girl."
From then until the 1940s, pink was considered appropriate for boys because being related to red it was the more masculine and decided color, while blue was considered appropriate for girls because it was the more delicate and dainty color, or related to the Virgin Mary
Since the 1940s, the societal norm was inverted; pink became considered appropriate for girls and blue
appropriate for boys, a practice that has continued into the 21st century.