I think the bulk of software "engineers" don't actually do much if any engineering work. However I agree that actual software engineering is indeed akin to electrical engineering. Meanwhile most of the real world work being done appears to me much closer to uncertified carpentry of highly questionable quality.
If you look up the etymology of engineer, you'll find ancient roots (Latin, etc.) many hundreds of years old which are primarily about contriving/inventing/designing clever devices and occasionally about operation thereof. And you can find that a definition regarding train operators was added less than 200 years ago. The train thing is just an offshoot that is irrelevant to other types of engineering.