Often upbringing can have something to do with it.
There are rational reasons for being disgusted by faeces/excrement, since it can carry germs. And some people transfer this disgust to other substances produced by nearby parts of the body like urine and sperm.