Developers aren't just the folk writing the code. They're the folk taking the vague, wishy-washy requirements from a product owner, asking all the right questions to figure out the real requirements, and then writing the code.
I'll worry about job security the day that an AI can figure out what a product owner actually wants. Until then, I'm still the interface between then and whatever fancy AI or low-code/no-code solutions might be around for the last step.