Because functions, such as the square root, are defined on numbers, not equations. We sometimes talk about "taking the cube root" (or whatever other function you like) but what we mean is "take the cube root of each side".
You can for example, start with the equation, x+ 1= 7 and then take the cube root of both sides but that gives , not .