On a train the motors may also be right under your feet:
https://en.m.wikipedia.org/wiki/Multiple_unit
And it’s still not annoying, at all. It’s very quiet, and I personally find the sound of electric motors much more tolerable than anything involving combustion.