AT&T prohibits bad words, but it's not "the same thing" as in the story.
In the story, they gave him no warning that the password was prohibited, or why, and then permanently deleted the account with no recourse.
That's pretty different from "oh we don't allow that, pick another one", even if the latter is also annoying.