There are diesel trains in Europe. They tend to be more on branch lines, though, with the main trunks being electric. (Electrifying every branch is
not economic.)
In the US, it could still be done (and has), but the economics are not as compelling because the price of diesel is lower.