In many cases the laws come before the social norms. In other cases, they are counter to the norms (such as with drugs).
Also, I think there was an attempt to make gore illegal (at least when it was real individuals) but it was ruled as protected (in the US, don't know about other countries).