Giving Birth is a big problem in these parts of the world

I've lost two friends to maternal death. I have never understood why giving birth in these part of the world is such a dangerous affair. I especially do not understand why mothers should die after all hospitals are supposed to be the safer option but instead hospitals especially small private hospitals and public hospitals it's now a common occurrence.