immune to rubella?

I had bloodwork done at my first prenatal appointment and they tested to see if I'm immune to rubella, and the result was that I am immune... why? I've never had it, but I did get the vaccination as a child so is that why?