This trait is only a subset of what's normally considered "envy". Not all of envy has an apparent use like that. E.g. if Joe feels bad because Neighbour Bob's house is 1030 square feet while Joe's house is only 1020 square feet, this doesn't really help anything, it just makes Joe unnecessarily miserable.