Whether they meant to offend people is irrelevant — its pretty clear that jokes w/ sexual innuendo in a public context isn't okay. Period.
Also, as others have said, this clearly wasn't a private situation. The whole problem with these jokes, even if not told directly to someone's face, is that they create a poisonous atmosphere.