Summary:

If another civ has captured a city-state and you capture it from them, you have the option to "liberate" that city-state. If you do so, you'll immediately get a huge bunch of IPs from that city-state. In addition, that city-state will always vote for you during "World Leader" elections.