Turbocharged engines do, in effect, vary compression ratio by controlling the waste gate. At idle, compression is effectively whatever the static ratio is. Under boost, the compression ratio effectively increases to pack fuel/air mix into the cylinders.