That shows well how the credit system is so broken. Your creditor decides to close your account for a reason that is absolutely out of your control, and _your_ credit score gets impacted negatively.
So you lender closing your account could lower you credit because of either or these reasons. Oddly sometimes opening an account can raise your score for the same reason.