Do babies need formula

Now I’m not judging at all. But my neighbor and I was chatting her baby is a month older then mine. My baby is 8 months her is 9 months. She stated she no longer gives her baby formula only table food and juice with water. I always thought babies needed formula more then table food but also this my first child. She has other children but says this the first time she has stopped giving formula. I personally will not stop giving my baby formula until 1 year old. Does anyone else not give they baby formula anymore? I was curious as to why and she said because her baby gets table food and doesn’t even miss the milk. I do wonder if that’s ok for the babies health but I suppose it’s not my concern because not my child I guess I’m more just curious. Maybe she know something I don’t I mean her baby does walk 🤷‍♀️.