The force of friction between the sticks creates heat. When the flammable wood gets hot enough, a fire can start.