^^What lastone03 said!
There’s really no such thing.
If one believes that the point of college is to only take vocational classes that are directly related to one’s major or one’s future career, then one is missing the point and wasting an opportunity the vast majority of the world doesn’t get to have.
People change careers! I started out working in public health and I work in tech. I know lots of people who changed careers or came from seemingly unrelated majors into tech like me (at least three former teachers, a lingustics major, a women’s studies major, a theater major, etc.). I know an art historian who’s in finance. I know a former financier who is now a teacher. You get the picture.
You never know when things you learn will come back around, but the important thing is that college is a foundation for being able to do other higher-level careers later and learning things in different areas helps people learn to think in different ways.
There are lots of different things a person who likes computer science can do besides software engineering or programming. And I’m also sure he has a lot of other interests, too.