The origin of the α-enhancement of massive galaxies