Sometimes it also happens because people are not cautious with their food and sometimes due to some kind of a particular sin. So, a person should seek forgiveness and try to make himself better in other walks of his life. Hopefully he will be helped at the end by Allah s.w.
