First of all, you may say that, this is a "why" question and in physics we don't ask such a question and instead we ask about "how". However, I want to discuss this with you.
We model the behavior of matter by physical laws, for example by quantum mechanics laws. I want to know how the matter, say electron, knows that it must obey such a law. What forces the electron to obey quantum mechanics laws?
If you consider a simulation of the universe in a computer, in the view of someone simulated in that computer the physical laws are just there. They may not know what keeps in check the simulated matter to obey physical laws, but in our perspective those simulated physical laws are there because we implemented them as zero and ones in a hard disk. If we wanted, we could change those physical laws and in the eye of the simulated person everything would be still fine.
Is there a scientific attempt to discuss this issue? so that I can read about it.