You rewrite the value of x
variable while preparing the Plot 2 - you initiate it as a Range[1, 10]
but then turn it into another complex polynomial. And this transformation is then passed to the new (from the Mathematica's point of view) definition of y
.