They got your number off what's called the "in between list". It includes unlisted numbers, business numbers, and every other kind of number that isn't a listed residential number. Telemarketers either buy or compile these numbers on their own using the telephone directory, and copying out the numbers that don't have a listing in the books they use.