Credit card is a kind of credit consumption card, and loan is also a kind of credit product. If you can repay by credit card, it is equivalent to cashing in the loan, which is not allowed.
In addition, there will be problems if you use a credit card to withdraw cash to a savings card for repayment. Cash withdrawal by credit card is cash installment. Banks have clear borrowing purposes for cash installment and can only be used for consumption. If it is found to be used to repay the loan, it is a breach of contract, which is absolutely not allowed by the bank.