F3G did you check in at a machine or with a person? If you checked in with a person, they have obviously made a mis-id. Is your surname similar to the name on the boarding card you were issued? Sounds like you were owed an apology.
Well done you for having that common sense to spot it.