Whatever current goes into a node must come out. Respecting the current directions, we equate currents into a node with currents leaving the node.