The passage starts by stating the argument that all acts of kindness are selfish. It continues developing this idea in the following lines and then uses the word "however" to show that the next idea will be contrasting with the first argument: that even though they are selfish acts, they are still good for the world.