Question

Why does the alcohol attack instead of the ester in the following problem?

Why does the alcohol attack instead of the ester in the following problem?enter image description here