ester's alpha hydrogen is not as acidic as ketone's or aldehyde's.
thus alpha hydrogen's pKa will be greater than 16. and alkoxide group's pKa is around 15-16 range which is not basic enough to produce enough enolate contents in esters. so the immediate dominant reaction when you mix ester with alkoxide or hydroxide would be nucleophilic attack of anionic oxygen to carbonyl carbon.