Typically trains are powered from above, and subways are powered from the rails. Perhaps this is the distinction, rather than running underground.
I suppose a subway train with rail only supply that goes overground sometimes is more dangerous because it is easier to accidentally step on a rail and rail is powered?