Why do balls bounce differently on different surfaces?

Different surfaces will absorb different amounts of the balls energy