No, it isn't literally what they told me. In many other countries, there is no possibility of being charged for any medical treatment you require when you visit hospital to give birth. It is free as in you don't need to have any money or any way to pay and you can be diagnosed and treated for any medical condition that might become relevant while you're there giving birth, and give birth and have any related issues handled, and you never have to pay anything at all. In the US, that is just not true [1].
1: https://www.theatlantic.com/health/archive/2020/01/how-much-...