1,3-diesters can readily undergo tautomerism.
In your case traces of the enol form under basic conditions, which is then re-protonated to give the other enantiomer or the same one back again. As the C=C in the enol is "flat" the proton can be attacked by either the top or the bottom face of the C=C leading to racemisation.