Ouch! Did they charge you?
In general, the Swiss are very particular about things. They made me gate check my carry on when it very clearly fit.
Here’s a DP:They offered to check my carryon for free while I was waiting to check in at ORD.
Most airlines will do that on a fully booked flight. Especially later on in the checkin process.