Where does it say porn is banned?
By your logic, any laws that restricts or controls the supply, sale, or advertisement of any kind of material or content to children is against freedom of speech.