Heat energy caused by friction is usually a waste product that results when energy is destroyed or dissappears.
Friction converts useful kinetic energy into thermal energy or heat. Friction gets a bad rap for turning useful energy into useless energy.