The concentration of ions outside the cell is greater than inside the cell. By opening the membrane channels you let the ions in - they flow spontaneously because of the difusion. If you try to pump ions out against their concentration gradient, you need to invest energy.