The ratings, I guess, apply to everything on the disc. And since the Hot Coffee minigame was on the disc, even though inaccessible through normal means, it still got the higher rating.
And yes, all of those were pulled and the Second Edition was released without the contested code. That's the version I have. It hurt Rockstar financially quite a bit (relative to had it not happened).