Evolution doesn't necessarily perfect things, it merely keeps the survivors along the way. There are probably plenty of better ways to have teeth, but unless they provide a clear and consistent survival advantage they will be lost. The vascularity required of retaining the layer might increase the risk for infection or have some other unknown disadvantage that we just aren't thinking of.