Doctor's orders

Danielle • Married to a wonderful man. 1 miscarriage and hoping for our rainbow baby soon
What is the reason why Dr's tell you yo wait a few months before trying for another baby after you've had an miscarriage. Are there any risk if you've try too soon. Are could it cause yiu to hsve another miscarriage?