Dear. Sales transaction is credited because
i. You need to debit something against this credit.
ii. You will debit whatever you receive in return of this transaction, it can be a cheque, cash or something else.
iii. If cash sales is made. Then you will be receiving cash in return. cash is a real account and always debited when increases.
while on the other hand sales is a income account and credited when it is increasing.