Hmm, that would be quite usefull to prevent issues of people running into eachother when trying to get on or off the bus, and keeps people from trying to sneak on and avoid paying.
Whatever it is, it doesn't look like it's complete. If I had to take a guess I would have to say it's the firing mechanism for Dick Cheney's door bell before he got it replaced.