Computer Science is the study of computing
Building software is just one application of computer science
It's a bit like the difference between someone who is a psychologist helping people in therapy, and a psychologist who studies psychology in a lab. They require similar educations but they are very different professions