I wouldn’t say it’s a “tradition” in Taiwan. Sometimes it happens at funerals and even weddings (more commonly in the south of Taiwan). In those cases, the point is to give the spirit of the deceased - usually this is done for a man who’s died - a final ‘good time’ before his ghost is whisked away into the ether.
But…