Having a background in a secondary science can be a huge benefit because clear understanding another domain is a lot harder to master than figuring out how to code up that understanding into a functional product.
For example, where I work, aero/mech engineers-cum-developers command a huge premium. My partner has a medical background and no programming experience, but is a very productive programmer for her team because she understands deeply what needs to be done. Her stuff isn't scalable past N>3, but it does the job she needs and was developed for a fraction of the cost from a professional dev team.