Could it be that the B777 is a better aerodynamic design than the A330, or is there some other reason for this anomaly?
How much do you know about planes other than that they fly?
Since your assessment of the difference in comfort is completely unscientific it's not really worth trying to find an explanation, but stuff like wing flex and plane mass does alter the way you feel turbulence.