Spotting at 10 weeks and 4 days

Iv been spotting on and off for the past 5 weeks went to the hospital and they did a scan the baby was moving around and the heart beat was fine but they didnt say what was causing the bledding this time. I'm a bit confused