paid electricity and gas bill 390 dr ele and gas 390 cr account payable 390 so credit should be cash or account payable why please explain it thanks

paid electricity and gas bill 390dr ele and gas 390cr account payable 390so credit should be cash or account payable, whyplease explain it thanks