Removal of content due to copyrights is censorship, you are being denied to spread or consume certain content. It's not different than defining that some content is protected with "national security" or however else you define it and then prevent the spread and consumption of it. Same thing, different excuse.
You can use placeholders to see it more clearly, i.e. "This content is X therefore in accordance to the law needs to be removed, failure to do so may lead to prosecution and penalties of Y"
You can replace X with anything, including "copyrighted material", "support for Hamas terrorism", "hate speech", "defamation of our glorious leader","communist propaganda", "capitalist propaganda", "self harm".