discharge

why do we have discharge. like it is white and sticky and it smells bad? and what even is it?