Interesting but hardly the general practice in Indonesia. It has happened in one village in Cerme district of East Java Province because they were short on grave diggers.
Because the link was to FOX I followed a link within the OP's post to SBS News, a news source Australians are familiar with. It is the same story but with a different photo of the grave diggers.
Going off subject a bit I found a portal at the bottom of the page to country by country current COVID data. I looked up Australia and found a graph that shows very clearly how we are currently experiencing a second wave that is worse than the first. US never really got the first wave under control and the second wave is on top of the first. Indonesia doesn't have anything under control - the infection rate continues to rise steadily.
Masks are considered a fourth order means of control. More powerful approaches are hygiene and cleaning, restriction of movement, widespread testing, social isolation, border control and quarantining. Unfortunately, when daily infection rates are above a certain level indicating exponential spread, then closure of certain businesses and limits to the number of people permitted in a given space are very important to allow for social distancing. Masks help but they are not a magic bullet. To get the shops and the schools open, the planes flying and tourism in full swing requires everyone to do their bit and co-operate with whatever we are asked to do. It also requires us not to do what we are not supposed to do. It is modified behaviour on a massive scale that will control the pandemic. IMO punishing people for not wearing a mask is not going to do much more than get people's back up, making them and others less co-operative and more rebellious. Breaking quarantine is much more serious.