Static electricity build-up due to friction and subsequent sudden discharge is the cause of the electric shock.