What kind of sentence structure is this: When I first came here, I didn’t like the citizens because they were different, but once I got to know them, they weren’t so bad.

Why?