If you will pay attention to Mt 25:40 .... "The King will reply, 'Truly I tell you, whatever you did for one of the least of these brothers and sisters of mine, you did for me.'--- you'll notice the emphasis on DOING.  No mention of the reason WHY the doing happened