It turns that it produces results that are close enough to reality to be good enough in lots of scenarios. (And, similarly to how you can ignore relativity in lots of scenarios, you can also ignore lots of other complexifying bits of physics some of the time -- plenty of mechanical equations will give you "good enough" results without taking into account air resistance, for example).
Yes, much of economics is like that. Economics is studying an inherently more complicated problem than simple billiard-ball mechanics, but the idea that economics has nothing useful to say about the real world is an agenda sold by people who don't like the implications of orthodox economics.