On the Origins of Symmetries of Partial Differential Equations: the Example of the Korteweg—de Vries Equation