If you ask why are there miscarriages, do you mean to equate them to voluntary abortion? Is a man dying a natural death the same as a man being murdered by another person?
If you are asking why is there suffering in general...sometimes it is at the hands of our fellow man who has been given free will...sometimes God allows it for reasons we may not know until we see Him face to face.