Everyone should learn to write. This should not be taken as "learn to write a novel." The practice of writing develops skills in articulating opinions, clarifying purpose, supporting with facts, and raising clear questions -- skills useful even if pen is never put to paper.
Similarly, "learning to code" is not to be taken as "be a programmer." Rather, learning to code is a means to developing skills in analyzing problems, establishing goals, breaking down big tasks into small tasks, understanding cause and effect, etc -- skills that are useful far beyond software. Learning to code isn't the only way to learn these skills, but it's a fun, easy, and accessible way to do all of them at the same time.