MCL also comment about the need for flex.
I guess it's like the Honda top box which has slotted rubber bushes allowing about 10 mm sideways movement. If these things were rigid bolt-on there would be cracks appearing. In the case of the bars, the rider would get a lot of vibration in the hands and arms.