For Nystatin: Does your baby have a rash that looks like raised red dots?
For Mebendazole: Did you drink or come in contact with potentially infected water?
There are plenty of OTC drugs with far more complicated symptoms. It's really completely arbitrary - or more accurately, it's driven by companies wanting to expand their market into OTC (as soon as it goes off patent) rather than anything actually medical.
Take Nexium for example: It was prescription only (and very expensive) till the patent ended. The day the patent expired it turned OTC.