Energy, work, and power

A crate is moved between the same two points along two different routes on a rough horizontal floor. Why can the work done by kinetic friction differ between the routes?