CS is an outlier, as most software jobs require relatively little formal education. STEM in general is not as forgiving.
In many sciences, your primary job options are teaching and research. And if you are going to do research, employers generally expect a PhD. Physics is probably the most extreme case, as it's common to see physics departments award one PhD for every three bachelor's degrees.