Robocall

I just got a political robocall from my own phone number. How do they do that?

I've heard of caller ID hacking. Did they do this on purpose (it's hard not to answer your own call), or was it a bug?