when you have shortness of breath
then your heart rate
also goes up.
would suggest get a cardiology work up done to rule out any heart problem
if you are discharged on some medication to continue while you are at home it could be a side effect of one of the medication.
would suggest get seen by the physician for a review and further treatment.
hope to have answered your query
get well soon and takecare.