Because is within parentheses, the exponent refers to the entire quantity. You only applied the exponent to y.