Why do chimney sweeps wear top hats?

This story says that beginning in the 17th century, funeral directors would take pity on these poor children being forced to crawl up chimneys. To help raise both their status and their morale, they gave them the extra top hats that would have otherwise been disposed of.