Might be a weird question.

I have been having discharge and it smelled not bad but it smelled like it did when I was pregnant 8 months go and get cramps not AF showed up yet. Why is that?