In the UK, the newer trains and tube carriages all have USB ports for charging.
But, it is kind of a non issue. You are responsible for your ticket. Having a dead battery is no different to losing your paper ticket.