I was a physics major (also CS, but I digress)
It has amazed me how often that knowledge becomes useful when programming real-world applications.
I was also a physics major. I also majored in CS, with plenty of EE thrown in. Since I make PCBs and write software for various control and measuring instruments, everything helped. Physics is pretty central to most I do. I’m retired but still have too many clients.