Most cells have an electrical potential across the cell membrane
Thus the cell acts like a small electrical battery with the negative pole inside.
This potential is produced due to three important characteristics
The presence of fixed (non-diffusible) anions inside the cell
The preferential permeability of the cell membrane to potassium
The sodium/potassium pump