Clairaut's Differential Equation is:
$$y=xy^\prime+f(y^\prime)$$
where $f$ is supposed to be continuously differentiable.
Every proof for the solution of this equation that I have seen starts by differentiating both sides of this equation; however, this makes $y^{\prime\prime}$ appear.
Why can we assume that $y$ has a second derivative?
When approaching this differential equation most people begin by restricting themselves to finding a smooth solution $y$.
So the logic begins as follows: Suppose $y$ is a smooth solution to \begin{align} y=xy'+f(y') \end{align} then $y$ must also satisfy the equation \begin{align} y'=y'+xy''+f'(y')y''. \end{align} There are many advantages to this approach, one begins that the complexity of $f$ lowers. Hence with a sufficient number of derivatives, we might be able to reduce the problem to a linear equation which we know have a solution.
Example: For instance, consider a smooth solution to \begin{align} y= xy'+(y')^2 \end{align} then we see that \begin{align} 0=2y'y''+xy''= (2y'+x)y''. \end{align}
Hence $y$ must be $y = -\frac{1}{4}x^2+C$. Here we found a family of solutions, but we did not answer whether there are rougher solutions since we implicitly restricted ourselves to the class of smooth functions.
Additional Example: Here is a better example. Consider \begin{align} y=xy'+y'=(1+x)y' \end{align} which can be solved directly to yield the rough solution \begin{align} y= |x+1|. \end{align} However, if we restrict ourselves to smoother solution, then we see \begin{align} y''(1+x)=0 \ \ \implies y''=0 \end{align} which yields $y(x) = a(x+1)$.