Law is downstream of philosophy. Youre forced to deal with conclusions that may be based in philosophy (or they may be arbitrary or self interested). Nobody makes you hold a position on mens rea. In that way you can ignore the philosophy.
In the literal sense, people have been forcing their philosophy on other people for at least as long as we’ve had societies, so I assume it’s not that.