Why is AES-128 considered secure while RSA needs a 1024-bit size to be considered secure
It's because with the key to determining the secret private key in RSA is to factor the public modulus into its two prime factors p and q and need a very large number (2^1024, 2^2048) to make this is computationally difficult.