The A330 engine diameter is smaller for two reasons, each contributes similarly to the difference. The A330 is significantly smaller / lighter aircraft than a B777. The B777 cruises at a faster speed also. At the same time, the B777 engine has around 9:1 bypass ratio, while the A330 has a 5:1 bypass ratio.