Spotting

I’ve had spotting since 22 weeks, I’m now 28 weeks. Any ideas on why?