And now you've discovered why economics is a social science. It builds models of human behavior. Humans are non-deterministic at this scale. As soon as you build an economic model, it's possible it stops working because its existence influences the behavior of the humans its modeling.
Austrian Economic theory comes closest to this ideal.