All about flavor!
The inside of whiskey barrels are charred (burned) for flavor.
Charred wood imparts sweeter flavors like caramel and honey. The reason for this is that the wood sugars are caramelized when heavily burned, and thus they leach into the whiskey. Aging whiskey (like bourbon) in charred barrels results in a smoother, mellower flavor.