Soldiers are rather effective at that too....
at what? dismantling enemy entry teleporters? killing uber medics before they reach the frontline? taking down a room with 2 sentry guns in? yeah, soldiers are definitely good, but the contribution that spies make is sometimes easily overlooked, cause you don't always see it happening.