Kirchhoff’s first law states that the sum of all currents entering a node is equal to the sum of all currents leaving the node. which implies conservation of charge.
The total charge entering a node must be equal to the charge leaving the node.
As it can't go anywhere except to leave, hence no charge is lost within the node.
This law is based on the conservation of charge.
Thus Kirchhoff's first law is based on the conservation of charge.