Welcome to the forum! That's quite the first ride bonding experience. Glad you stayed safe.
These V-twins have a way of shaking all sorts of fasteners off. On my own first ride on my '09 XB9SX the chin spoiler totally fell off on the highway. Thankfully the dealership was good enough to pay for a replacement.