A freight train still requires two people in a locomotive and it runs on a near-level track with course guidance switched externally and - increasingly - speed controlled the same way. And the primary job of the engineer consists mainly of taking his foot off the deadman’s switch if everything else fails. Or if he dies. And the other guy is for backup.
i think we got a few decades left before pilots are obsoleted by technology.