With energy transition it's obvious: cleaner environment/planet, new industries with safe jobs, elimination of a dangerous job, a healthier population. So it's beneficial for the government to help make the transition happen quicker, and support the people negatively affected by it.
If there are societal benefits towards getting everyone to be cashless (I'm not an expert in this, I simply choose cashless because it's more convenient for me, although I suspect there are larger benefits), then the government should take the same role. Help the transition happen, and support those that will struggle with it. If they're not going to help the transition, or if there are no larger societal benefits with the transition, then the people that still depend on the older option should still be able to depend on it.