In the perfect world, at the individual level, breast/chest feeding is ideal. But then, we don't live in such a world. And many times, exclusive breastfeeding is not a viable option.
The newborn stomach is small, so babies need to feed frequently. Due to their overall immaturity, newborns need to stay in close contact with their parents in order to control their body temperature, breathing rhythm, and heartbeat.