The two may be linked. Local transport provision here is through the local authority, although the actual provider may be a private company. As a result the C-19 related disruption was minimal and short lived.
This may be connected to a different perception by the general populace that public transport is worth paying for, or it may be that the perception is the same but the decisions are made more locally here, so politicians are more in tune with this thinking.
Other factors could be that people in Germany tend to live in apartments or more compact suburbs so it is easier to provide public transport, and that transport provision is connected to property taxation, so the better the provision, the higher the tax: a tramline, for example, is financed by increased taxation on the properties within a certain distance of the route, and landlords can recoup this, and (to some degree) make more money by increasing rents.