How does cid make power?

I'm Canadian everything cost more up here.



Here the under the curve if you lined up the peaks like you would if gearing properly.

410 3000=250 3500=310 4000=365 4500=399 5000=420 5500=431hp
360 3300=252 3800=315 4300=360 4800=399 5300=418 5800=423hp

Cid, lbs-ft, 1st rear , torque to tires
410 480 2.45 x 3.73 = 4386 lbs-ft
360 444 2.44 x 3.91 = 4253 lbs-ft

This thread not about which ways better to build power cid vs rpm or that you shouldn't build strokers or whats more streetable but does cid make hp?
Which to me it doesn't.
Clearly, it doesn't. But youre trying to ignore optimizing the combination for its size.
1760 cu. in., 290 hp. Do you think an optimized cylinder head and cam won't get a little more out of it?