You forgot the most basic thing. An engine has a throttle which limits the amount of air/fuel that can enter the cylinders at low speed/low loads. Less air fuel/less torque. Less cylinder filling also lowers the compression ratio. Compression ratios are calculated assuming 100% cylinder filling.