My CS dept liked to say "We don't teach programming".
CS and SWE are definitely related but distinct. Knowing both is best, but knowing one well and having a very cursory and elementary knowledge of the other is perfectly fine and useful.
It's like studying the Maxwell's theory does not make you a qualified electrician, nor even requires you to already be one.