Sometimes, due to hormonal fluctuations, even if a dog has not been bred, when their heat cycle ends their bodies think that they are
pregnant and they will develop all of the signs of actually BEING
pregnant.
If the discharge was only from one nipple then I would suspect some type of infection, but with it coming from ALL of them, the only thing I can come up with is pregnant, either actually pregnant or a false pregnancy.