Post partum infection

Why are the signs? I’ll be making my 6 week postpartum appointment soon but I’m curious. I’m no longer bleeding but I have tan/yellow discharge that I assume is still leftover lochia? But my concern TMI is that is smells awful. It also occasionally hurts to use the bathroom. Not a UTI and it just sucks. Hubby is ready to do the deed and I’m too embarrassed and worried I’m not healed. I’m 6w2d postpartum.