Radio and TV has long had more limited free speech protections because it’s a shared and thus finite resource. Thus the fines for curse words, nudity, etc.
Banning in magazines targeting kids is a separate question.