Even if the buses are not strictly profitable, buses are usually diesel powered and probably contribute quite a bit to smog-forming emissions. So electric buses have the benefit of removing (or relocating) those emissions, which is a public benefit.
I need to see a spreadsheet or something.