I lost both my babies

I've recently has a scan and was told "is bad news I'm afraid, we can't find a heartbeat in either of them".

I didn't know what shocked me more, two babies or that I will never get to meet them.

I lost both babies a day apart and now I know I have to miscarry them both. But could something be wrong with my body for the big to not survive?