1) We need to consider that whenever we have a variable its exponent is raised to the 1st power, even when we don't write it as a superscript.
2) So we can write out the following steps to get that product as x²:
That's why we can write that, applying the property of exponents.