You get to break down a problem and see what it comes down to. Diagram it out and use logic on each component, like a mathematical proof with more clearly defined steps. A lot of students who go into Computer Science in college have high math scores in high school and it’s a field that definitely uses similar logic.
I personally enjoy Computer Science because it’s a very theoretically strong field. If you dig deep enough, it’s possible to understand everything you’re doing code-wise. (Admittedly, in industry, that’s not always feasible.) I love understanding what makes things tick.
And the coolest part of it is that the limit to a lot of algorithms is just “we don’t know a better way…. yet.” A lot of engineering disciplines are stopped by laws of physics or properties of matter. Computer Science doesn’t have to deal with reality quite as heavily – we leave that to the electrical engineers. Speed of light, psh, that isn’t what’s making the Traveling Salesman slow.