Ants don't really do 'funerals'; even the dead in their own colonies are put into a garbage dump rather unceremoniously.
There's a handful of possibilities for this behavior...
Lots of ants bury large food items to protect it from scavengers, other ants, and to absorb liquid which comes out from the prey.
Ants put waste (dead ants, poop, shedskins, etc) into a large pile called a 'midden pile' which functions just like our landfills.
If something ended up in that pile, they could be moving stuff out of the way.
Ants do weird things, but it usually revolves around productivity.