My cat passed away in front of me

I lost my cat this morning. He was attacked by a dog 2 weeks ago but was recovering. He had viral infection three days ago and was given steroids for that. Since yesterday, my brother and aunt were warning me not to touch him too much for a few days because he might have rabies. I'm so glad I didn't listen then because my baby passed away this morning. Last night he was in the bathroom because of diarrhoea and i went to check up on him. I was stroking his head, praying when he slowly got up and came closer to me, resting his head on my thigh. I had an intuition that he wasn't going to survive but I was begging god to prove my intuition wrong. Today I went to meet him before i left for college and he was sitting in a corner, no movement except breathing. When i touched him he meowed loudly, which made me call my aunt. He was gasping so my aunt tried to give him electrolytes. He vomitted and we knew he was going to cross the rainbow bridge. We waited with him until the last second, everyone crying, my aunt telling him how much everyone loves him and sorry for not protecting him. I hate to think he would have passed on alone if I hadn't gone to meet him. Everyone was saying that steroids in such a large quantity aren't good and that's the reason. The doctor just wanted to make money. Sorry for the long post. I'll always love him, he'll always be my baby🤍🧿 Edit: the pregnancy post has nothing to do with this. We let him out for some time everyday because the vet said we had to. Every body loved and still loves him very much. Please do not suggest we threw him out ir abandoned him. Please do not taint his memory and my family's love for him.