Ok thats a "roll" pin and is used to control over travel of the selector arm. On later transmissions its replaced by and adjustable eccentric pin. It's just a press fit in the cover. Why it came out I dont know, thats not a common event. I suggest you use some green Loctite on it if it comes out again.
Have a look at my write up on the selector mechanism.
Ciao