Did you put any kind of sanitizer in the cup? Vodka, starsan, oxi-clean, bleach? Most likely some micro-organisms managed to start growing in the cup if you didnt. If you just noticed it today I'd make sure to put sanitizer in when you replaced it, keep an eye on the beer.