As folks have pointed out the sheer building capacity of the UK vs Germany, with the UK having far more slips and yards than the Germans have is also a huge advantage. And as folks also pointed out the UK at the time had literal laws that said if they were being threatened militarily at sea, then the purse is opened and its a case of "Go nuts."
As an example of this, in the early 1900's the Russians were developing the
https://en.wikipedia.org/wiki/Peresvet-class_battleship class of 'fast' battleships.
The Naval attache for the UK managed to get some information about this class off dock workers and spies and the like as well as Russian information or propaganda about the class.
And from the sounds of it ,these were super-ships, that would be far faster than any battleship afloat, able to run down any armoured cruiser and crush them and wreak carnage on the UK's vital merchant fleet. Basically, imagine the Gulf War 'Iraq has Chemical weapons' panic and translate that into warships as the attache took these reports, added his own spin on it and passed it onto the UK.
In the Admiralty, pants were shat, tits went up and a whole manner of things went sideways before the Admiralty yelled at the Government about this clear and present danager predicting doom and disaster and the need for a counter.
The result was SIX of the
https://en.wikipedia.org/wiki/Duncan-class_battleship whereas the Russians built 3 of the Peresvet class and they were nowhere near as good as the reports indicated and the Duncans were a considerable overmatch being faster, better armed and protected.
It took the Russians between 3 - 5 years to build those three ships.
The UK spooted out the Duncans within 3 years with one taking 4, and this was without interrupting other construction projects for battleships, cruisers etc.
The UK's naval industrial muscle of the Victorian or pre-dreadnought era is terrifying, and if you challenge them the UK is legally obligated to out build you. And the French will also start building up to try and counter this German threat too. Or they just build up their army and threaten you on land which you're now largely ignoring in order to try (and fail) to outbuild the RN, MN and Russian Fleet combined.