Carbonate is acting as a base in that situation, it would happen if Carbonic acid which is a diprotic acid was deprotonated twice, which would give you a CO3-2 ion, this is now the conjugate base of bicarbonate ion, and is a base. It would deprotonate water creating an OH- donating e- which is the definition of a lewis base, and possibly it is an arrhenius base as well.