The short answer is that railroad electrification costs much more then dieselization, and in most cases it would not allow significant improvement of operations. Consider the costs involved: You already need to maintain a set of tracks and diesel locomotives.