We don’t really understand triboluminescence. When materials scrape together or are split into pieces, electric charges are sometimes pulled apart in a way that lets them snap together to release energy. But there are a lot of ways atoms can bonk against one another, and scientists have trouble figuring out exactly what combination of effects is producing light in any particular experiment.