I am so sorry to hear about the loss of your cat. It is heartbreaking to lose a beloved pet.
I cannot diagnose the cause of your cat's death. It is crucial to contact a veterinarian as soon as possible. They can perform a necropsy (animal autopsy) to determine the cause of death.
A veterinary diagnosis can provide an accurate answer, peace of mind, and information about potential risks to other pets or yourself. If the death was caused by a contagious disease, the vet can advise on preventing further spread.
While it is natural to speculate, it is important to wait for a professional diagnosis. I hope you find comfort and peace during this difficult time.