Why did my cat die? He died yesterday?

He was only 4 years old and didn't get any recent vaccines or anything. He first started spazing out on the floor then he started making these coughing or choking sounds and then a minute later he stopped breathing so we rushed him to the vet. There was also blood in his mouth so maybe he had a blood clot or some kind of heart problem. Unfortunately they couldn't save him and I have no idea how he could die so suddenly. What could be a possible explanation to his death?
Updates
+1 y
He was also an outdoor cat so I don't know if that could play a factor in his death.
Why did my cat die? He died yesterday?
Post Opinion