I don't understand too well how this works
If I did that wrong please correct me . I saw it on my test today and did not understand it.


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
.