Why does the matchstick start burning on rubbing it on the side of the matchbox?

Red Phosphorus