The main reason is how people build houses. In Europe, people use different meterials (bricks, mortar, concrete, etc.) which insulate and put on top insulation. Walls are thicker too. The good insulation keep the heat outside.
The other is the law. Europe has regulations on AC. For example, if I want AC in my house, I must compansate the electricy consumption with renewable.