The general solution of second-order Cauchy-Euler equation
$$x^2y''(x)+pxy'(x)+qy(x)=0\tag1$$
is given by
$$y(x)=c_1 x^{\alpha_1}+c_2 x^{\alpha_2},\tag2$$
where $$\alpha_{1,2}=\frac{1-p}2\pm\frac{\sqrt{(1-p)^2-4q}}2.\tag3$$
But when $q=\frac14(1-p)^2$, i.e. when $\alpha_1=\alpha_2=\alpha$, the general solution somehow gets a logarithmic term, without which the generality of $(2)$ is lost:
$$y(x)=c_1x^\alpha+c_2x^\alpha\ln x.\tag4$$
I know how to derive this result e.g. by the method of reduction of order, but it doesn't seem to give much intuition on the origin of this logarithm. What is an intuitive explanation of where this logarithm comes from and why the general solution suddenly stops being general for particular combinations of $p$ and $q$?