Phonons lead to friction energy dissipation