Actually that is how evolution works. Evolution results in species acquiring traits that are beneficial to them. Of course you could make a counter-case that perhaps sentience is only beneficial to us in particular, and not so much to other species --
To which I would completely disagree. There is this fascinating, relatively new theory of how humans became sentient. Previously (1960s) it was thought that humans became sentient either somehow out of the blue or due to having to construct tools etc., which then allowed them to organize into groups. The new theory, on the other hand, claims that high intelligence (and by extension sentience) is an inevitable consequence of living within a particular type of group -- largely the type of group that many primates live in (the original studies were done on baboons), though this is not limited to primates.
The idea is that if you are a member of a group where grooming behavior, alliance-making, and status-related interactions are common, you benefit tremendously (in a reproductive sense) from possessing a "theory of mind" capable of making predictions about the actions of others that are at least a few percent more accurate than those of your peers. The way it works is a bit like the stock market -- all you need is to beat the market average. So this "theory of mind" -- being preoccupied with what others think -- is actually claimed to be a runaway effect of the intelligence "arms race" which always occurs among animals living within that type of group. Now, sentience is merely a theory of mind applied to self.
I fully expect that within the next 10 million years at least two other mammal species will become sentient, if we humans don't make them extinct that is... Anyone willing to make a long bet?