I had two miscarriages

I’m 5 weeks pregnant today why did I get prescribed baby aspirin so early on