Why do numpads on keyboards and phones have reversed layouts?

I came across this on the web. It's supposed to be funny, but we all know better :)

enter image description here

So, why are the numpad layouts different, and what are the reasons behind each?