Spanish word mejor comes from Proto-Indo-European *moy-
*moy- (Proto-Indo-European)
*mol(w)ə- (Proto-Indo-European)
to grind, mill
*mélyōs (Proto-Indo-European)
meliorem (Latin)
mejor (Spanish)
Better Better.