The law used to be that it had to be intentional for a penalty to be awarded
If the ref deemed it not intentional it wasn’t awarded
That’s how it was when I qualified as a ref in the early 80s I’m not sure if the law now but someone on here will probably tell us
That also applied to handball aswell