Is compassion necessary for the evolution of machines? It surely has helped humans on their journey through time and change, but it might not be a necessity for the rising species of technology.
From a technical perspective compassion is a protocol that allows us to use expression of the body — sometimes enhanced by sound — as a means to understand portions of the current psychology of other humans. This is very helpful when trying to understand whether the person in front of us is going to kill us or kiss us.
Once technology passes the tipping point of being able to calculate, adapt and replicate its soft- and hardware faster than we could even follow at the average thinking process of a human, it will probably not need us anymore.
Unless, perhaps, it is compassionate towards us and understands — maybe even better than we ourselves can — what makes humans special. Or not.