Why wait to TTC after miscarriage

What's the reason that some doctors suggest you wait to ttc after miscarriage? 
I was only 4 weeks 5 days when I miscarried so I am not sure if they will tell me to wait or not. However, same doctor told my cousin to wait 6 months. Not that I'll probably follow the recommendation, Just wonder the reason for waiting! Thanks!