You can only get STDs from someone that has them?

STDs are curable so why would anyone have sex when they have an STD? I'm curious. Do they not know? Or are they just reckless? Can you get an STD any other way (salvia, needles etc)?