The compression ratio in petrol engine is kept less than in Diesel engine because higher or equivalent compression ratio in petrol engines is not possible due to pre-ignition.
Pre-ignition happens when the fuel-air mixture in a spark ignition engine ignites before it is supposed to because of contact with a hot surface. Over-heated spark plugs/ exhaust valves are the main causes of pre-ignition.