Yes, its static electricity being discharged. It happens to me after a ride on low-humidity days. I get a shock when I touch any metal parts (such as the metal handle on my front door. A bicycle moving through the air and making (or making its own) wind, insulated from the ground by its tires, could create a static electric charge on the bike. When you get off it could cause a small shock as the charge gets discharged.