No, you only think that's irrational because you can only see so far. In reality we help people because in the long run it benefits us more than not. A rising tide lifts all boats etc. You don't actually get as much out of being selfish as you think you do.