Transit companies get shafted in municipal budgets politically. Increasing ridership by increasing frequency (more drivers / more cheap diesel or lng buses) is a better investment of limited budgets than electrification.
But also sometimes transit agencies just do dumb things (see, Boston de-electrifying a few bus lines).
But also sometimes transit agencies just do dumb things (see, Boston de-electrifying a few bus lines).