Hi Jeecaiseatt96
Sorry to hear about your experience.
I guess it was a digital Ticket, correct?
Strange that any explanations hasn’t been given… I say this because in Switzerland any digital point to point ticket is personal. That means that for any Ticket control there is an ID check (only to see if your are in fact the owner of the ticket). I just wanted to give you this information along in order that you can understand the “why”.
But i cannot discuss about the “how” as we were not there.
Here resumed a very good Tip in this discussion: https://community.sbb.ch/d/21890-info-warum-muss-ich-bei-e-tickets-einen-ausweis-zeigen
(The text is in German, but you can easelly translate it in english with a click right away from the Diskussion)

Please take contact with Rhb as suggested from Danihel.
Many thanks and best regards,
Romano