Why why why I can't handle this anymore

L

I had a stillborn on 2018 I was 32 weeks then I had a miscarriage at 5 weeks pregnant 2019 then had another miscarriage March 2020 now I'm at the hospital with another miscarriage the heart beat stoped at 7 weeks and 4 days . I'm bleeding alot I'm at the hospital they are going to give me pills. I'm so scared . And confused I don't understand why I'm having all these miscarriages if I already have 3 kids