Violence, nudity, gore etc in this materialistic society, are things that make money. Hence they are defended by core principles of freedom and choice/ If a governments role is just to keep people happy (which is true for a society based on materialism, which is the govt of society) then i agree that the government should not censor these things. It goes against the “government keeping people happy” model of rule, which has its problems, but nonetheless is the model accepted by and applied by the people of this society.
But as a Muslim who believes in the Islamic role of government (which is to take the society towards God) Government regulations and restrictions on violence, gore, nudity etc are key to fulfilling that duty. Happiness of individuals can be sacrificed for the purpose of society reaching closer to God and living on Islamic principles. Hence in countries such as Iran, the issue of censorship takes a whole different meaning. The role of the government of Iran is not to keep its people “happy”, it is the establishment of a just society based on Gods laws.
In that process, happiness, freedom, or choice of individuals who transgress those laws, and promote desensitizing pornography and violence, becomes expendable. The same essence can be seen through not just censorship laws, but other societal laws as well such as hijab among others.