I agree with this but I'd like to add, besides sometimes not being an option, choice and dedication are super important too.
There are some women who might be perfectly capable of breastfeeding but get extremely discouraged at some of the potential and common initial challenges (the baby learning to latch on, the pain for the woman in the early weeks, low milk production, etc.). I do think it requires a big/dedicated commitment during those early hours, days, and weeks and unless a woman has firmly decided she's absolutely determined to make it work and get through those early hurdles, a VERY large number of women give up in those early days. I've certainly watched that play out.
When I had my children, there were nice nurses who would help women figure it out, if the woman really wanted to nurse. When my grandchildren were born, those nurses were a lot more invested in really hoping the women would choose to nurse their children. In the span of that generation, I think the value of breastmilk had become much more understood and "pushed" by those nurses assisting moms in the hours after birth. But it's rare when there aren't nursing obstacles and hurdles very early on (when emotions and hormones are already high). The "give up" rate in those early days is quite high.
I think that's unfortunate, being a woman who is such a strong supporter of breastfeeding. It makes me sad when a woman who really didn't give nursing much thought during her pregnancy or a woman who planned to nurse but it wasn't a huge priority to her - gives up so soon.
I would also guess (and have seen evidence that) what a young mother's own mother chose impacts what a daughter chooses. That got a little lost when my mother's generation had babies. My mother didn't nurse her children and many other mothers in the mid 1900s also didn't. But then hippies, earth mothers, natural foods and such became a thing with my generation - and breastfeeding made a bit of a comeback.