How does cid make power?

How can you have identical torque and horsepower curves when one engine makes its power 2k higher?
So they make the same power at one rpm point over the whole curve?