It's not that government has no idea, it's that around the world, too many "leaders" are directly or strongly indirectly being enriched by the fossil fuel industry and their support industries.
So politicians have a choice: do what's right for the people, or gain more power/money for themselves. Not every one of them chooses poorly, but enough do that it is difficult for real progress to be made.