6 weeks pregnant brown discharge

Sarah
Got the confirmation from my doctor yesterday he said I'm 6 weeks pregnant. Today I have started with the Brown discharge. This happened to me in January and resulted in a silent miscarriage. Why is this happening to me again?