Spam callers can get your number by setting up fake contests, charities, or giveaways where they lure you into registering with them, and they get your number. Others can get your number by buying it from untrustworthy third-party providers.