The work done by friction is not lost but is transferred as heat energy.
The Law of Conservation of Energy states that energy cannot be created or destroyed. It can only be transferred from one type to another.
Energy is not lost when frictional forces occur. For example, when a bike applies its brakes and slows down, the kinetic energy of the bike is transformed into heat energy in the brakes.