You're comparing keys from two different cryptosystems, which is a mistake. A RSA key ("1024 bit keys") needs to be longer than a AES key ("256 bits") to provide a given amount of security, since more conditions are placed on an RSA key in order to get its favorable properties.
In 1999 you could break a 512-bit RSA key with a supercomputer, in 2015 you can do it with 4 hours and $75 on EC2:
http://arstechnica.com/security/2015/10/breaking-512-bit-rsa...
A 768-bit RSA keys has been factored in a large academic effort:
https://eprint.iacr.org/2015/1000.pdf
When you pick a key length, you want it to be long enough to provide security for your communications as far into the future as practicable, and the classical efforts to break RSA are getting uncomfortably close to 1024-bits. Maybe in a few decades it would be practical for some adversaries to break even perfectly made 1024-bit keys.
However, I'm not a cryptographer, so someone please correct me if I'm wrong.