Physics deals with relatively simple things compared to economics, because nature is inherently rational once one discovers the rules.
Humans, on the other hand, can not be grasped so easily because they change the rules. Even if you "discover" a working theory of human behavior, people may just react by not doing that thing anymore to spite you.
So if you want to have some sort of basic theory, any theory at all that really could work with such subjects, you gotta step waaaay back.
The rational actor that actually "works" to build a scientific theory is such a general concept that it has literally zero predictive value. It states that actors make consistent choices, but only for identical choice situations. Thus, even if a microsecond passes, we are not in the same choice situation and all sort of rationality is out of the window.
An actor who chooses chocolate first, and then chooses something else the next second while throwing away the chocolate is can still be rational, it's only about the counterfactual of the first choice situation.
Yet, one was able to show that this sort of very general rationality is a necessary condition to writing a formal model of human behavior, in other words the homo economicus is just answering the question as to what ground rules we need to model human behavior in the first place. It is truly an immaterial, philosophical object that is used in all science dealing with human behavior.
It's more to the credit of economists that they actually wrote this out axiomatically instead of hiding it in implicit discussion.
Then, economists went and tried to write falsifyable theories based on data and observation. This has been done with more or less success, but let's not forget that economic science still replicates much, much better than something like Psychology or Sociology, also concerned with human behavior.
By the way, applying physical approaches to economics is called econophysics and is a thing that exists. It's not really a thing that is successful, cause if you treat humans as mindless particles who are just behaving according to some ruleset, you are working with hyper-hyper rational actors.
But it exists.