How does cid make power?

What would be stopping the 400 from turning enough rpm to displace the same amount of air/fuel/hp as the 512 ?
What would be stopping the 512 from turning the same rpm as the 400? And don't tell me stroke.