The UK counts deaths from Covid as deaths for any reason within 28 days of a positive Covid test - test positive and get run over by a bus a few days later, and you get counted as a Covid death.
I don't know the exact methodology used in Thailand, but many countries count a Covid death as one where Covid is a primary cause of death, as given on the death certificate.