The thing about math and science is that you need to show up, you need to put effort in, you need to keep trying until you get the correct answer. In my experience, nobody keeps trying if they think they can't do it. I have come to believe that pretty much everybody is capable of doing the calculations. But not everybody is willing to subject themselves to the grindstone.
I've seen novelists, songwriters, etc say the same. The lesson I take from this is not that people need to learn when to quit, they need to learn to stop half-assing it with the expectation that things will eventually get easy.
After dropping out a couple of times I found college was a lot easier as an adult. Not because I had grown, I don't think. But possibly because I had learned elsewhere, which made the courses easier, and definitely because I stopped caring as much.
While I don't think they should have dropped out right away, however if I were in their place, I would have certainly dropped out but maybe that's just me.