I am learning about schemes reading Ravi Vakil's notes. On page 136, he says "For example, consider the scheme $\mathbb{A}_k^2 = Spec \ k[x,y]$, where $k$ is a field of characteristic not $2$. Then $(x^2 + y^2)/x(y^2-x^5)$ is a function away from the $y$-axis and the curve $y^2 - x^5$. Its value at $(2,4)$ (by which we mean $[(x-2,y-4]$) is $(2^2 + 4^2) / (2(4^2-2^5))$, as $$ (x^2 + y^2) / (x(y^2-x^5)) \equiv (2^2 + 4^2) / (2(4^2-2^5)) $$ in the residue field".
I understand that they are equal in the residue field, because I did the calculations to verify it. But I really don't have an intuition or idea why this happens (as why evaluating the point "is" considering it in the residue field). I would greatly appreciate any explanation on this matter. Thanks!