I understood mtgx's question to be based on practical grounds, not moral ones. But in answer to your question, I think of espionage as something akin to the military. Perhaps in an ideal world neither would be necessary, but unfortunately the world is not a utopia.
Thus, from a realistic standpoint, spying is sort of like doing market research for a startup. It allows you to make predictive decisions instead of reactive ones.