Death is a taboo in western cultures: a moment of sadness and despair in many cases, while gambling is related to joyness, excitement, leisure and pleasure. Therefore, people don't mix both.
It depends on the culture and the tradition this is normal for us I have stated in this thread that we do this to sympathize and to be with the family for the whole night, it's not like a fiesta celebration we do the gambling outside of the house while the family and those who want to sympathize are are inside the house, we usually have a tent outside of the house this is where people gamble and talks or just want to be in the premises.
But on the day of the burial, everything is solemn and full of sadness and sympathy for the family.
I guess we all have traditions that are very different from other countries when it comes to gambling and how they do it.