I've been denounced for occupied cities when their former owner did cede them to me in a peace deal. I think this must be a bug surely...
Or perhaps not a bug, but a way of showing long-term resentment that you took one of their cities. Just because they ceded the city in a peace treaty doesn't mean they shouldn't hold a grudge. I know a human player would (even after 300 turns....).