When the cell excretes sodium from within, against the natural tendency of matter, it is performing active transport.
Active transport is the movement of substances across a membrane from a region of lower concentration to a region of higher concentration against its concentration gradient or other impeding factor. When the cell excretes or transports something against its concentration gradient, active transport is required. Active transport uses either energy or electrochemical gradient.