Physics started as natural philosophy then became a science but one should not forget to explore its nature as it evolves ..and the realist element is undermined in my view.
Most theories are evaluated based on their alignment with this philosophy, i.e. not based on conceptual or logical coherence but based on realist connotations i.e matching the world, lakcing implicaions that are absent in nature.
Other philosophies complement physics, like conventionalist or relationalist but realism is the defining one and in my opinion has been interchangably, albeit not admitedly, used as a reference for what physics stands for.
In my work "Predictability in physical sciences" (available on my profile) i touch sone aspects of realism, mainly via its expression in oredictability pursuit, which is an overdue aim in physics, thus painting another argument for this thesis: physics is equally a science and a philosophy of realist criteria focused truth seeking