An intuitive way to see why
$$\frac{dx}{dy}\frac{dy}{dx}=1$$
would be if we treat the ratio as if it were actually a fraction. In particular, suppose that $x$ and $y$ are actually functions of some dummy variable - we could imagine, for instance, that they take on various values over time - but they happen to always satisfying some relation. Like, for instance, we could have $x$ be the volume of a balloon and $y$ be the pressure within. The two variables depend on time, but the quantity $\frac{dx}{dy}$ still makes sense - and can be interpreted equivalently either as the change in volume given a change in pressure OR literally as the ratio of those two derivatives where $dx$ is taken to be the derivative of $x$ with respect to the dummy variable time.
That this works is equivalent to the rule for composition of functions - that is the property that $(f\circ g)'(t)=f'(g(t))g'(t)$. In particular, suppose we had $x$ and $y$ related by $f$ so $x=f(y)$. Then, we take the derivative of both sides, where we write the derivative of $x$ as $dx$. Then we get:
$$dx = f'(y) dy$$
or, in other words, where $x$ and $y$ are functions of $t$
$$x'(t)=f'(y(t))y'(t)$$
by the rule for composition; note that we aren't differentiating with respect to any particular variable, and yet if we considered both $x$ and $y$ to be functions of their own, the values $dx$ and $dy$ are in fact well-defined, being simply the derivatives. So, we interpret the quantity
$$\frac{dx}{dy}=f'(y)$$
to read that we literally want the ratio of those two derivatives - and the statement above: "$\frac{dx}{dy}$ is the derivative of the function relating $x$ to $y$" is a consequence of the product rule. Thus, we can legally cancel in the fractions, so long as neither derivative is $0$.
The same technique, unfortunately doesn't work for partial fractions, since if we tried to write out
$$x = f(y,z)$$
and differentiated to
$$dx = f_y(y,z)dy + f_z(y,z)dz$$
we would see that dividing by $dy$ or $dz$ would yield an expression dependent on either $\frac{dy}{dz}$ or $\frac{dz}{dy}$; the problem is that the above interpretation of derivatives only works well in a single variable, since it implicitly assumes that every variable is a function of a single dummy variable.