The structure must be allowed to give and flex like a shock absorber in order to keep it from internally shaking itself to pieces. Most swaying, while very visible from the ground, is not noticeable while on the ride. It's also easier to spot in large wooden coasters versus steel coasters.