Today, this practice has diminished somewhat with the use of plastic bags with strings.
But there are still kopitiams that use them (like near near my home). Why is the tin useful? Well, it can serve as a cup. But the plastic bag works (and popular with construction workers) because you can hang it anywhere. And no worries; the hot tea or coffee does cool off quite fast and can be drunk safely with a straw. ;-)