If the arrays have different shapes, NumPy automatically broadcasts them to ensure compatibility. Broadcasting allows arrays with different shapes to be combined element-wise.