Yes this is intentional: when buttons are grouped with no gap, then our current design system says that they should all be secondary buttons.
If you open your browser console, you’ll see warnings in the from the component telling you this.
polaris: <s-button-group gap="none">… - primary-action slot is not supported when gap=“none”. Only use the secondary-actions slot for segmented buttons.