We are given a family of straight lines $y = mx$, where $m$ is a parameter (arbitrary constant).
To find the differential equation, differentiate both sides:
$\dfrac{dy}{dx} = m$
But from the original equation, $m = \dfrac{y}{x}$
So, $\dfrac{dy}{dx} = \dfrac{y}{x} \Rightarrow x \dfrac{dy}{dx} - y = 0$
Thus, the Assertion is true.
Now, Reason (R) states the general method of obtaining a differential equation — by differentiating and eliminating arbitrary constants.
That is exactly what was done here.
So both Assertion and Reason are true, and Reason correctly explains Assertion.