OK so this trick could come in handy in a lot of places, not just prison. But prison is definitely one of them.

Imagine you're stuck somewhere without a lighter or matches, like the woods...or prison. If you have a foil gum wrapper and a battery you can make fire like the cavemen did. Or you could remember to always have a lighter or matches handy. Whichever suits your lifestyle best.