This is a device, called a bicycle tire pump.  It is used to compress air and inject the air into bicycle tires.