A student determined that shaking a container of sand caused the temperature of the sand to rise. The student then performed a new experiment to see if shaking a container of pebbles would cause the temperature of the pebbles to rise.

Explain why the shaking caused the temperature of the sand to rise.