The protestors were not a very vocal minority, but representative of the majority opinion. At the time well over 80% of Germans wanted an end to nuclear power. (Although now following the Ukraine invasion and rising energy costs the opposition has significantly softened.)
In a democratic system it is simply difficult to maintain such extremely unpopular positions. Governments which do so don't last long. Merkel flip-flopped and maintained her Chancellorship.