Why am I losing the game when I capture a city?
Solution 1:
Just happened to me too.
In my case, I triggered a religious victory for another player.
To explain, a religious victory requires all other civilizations to have more than 50% of your religion. Everyone had been "converted" except this last civilization. When I took their last city, the condition that all civilizations be "converted" came true.