Answer:
C) the law of effect.
Explanation:
According to my research on studies conducted by various psychologists, I can say that based on the information provided within the question this behavior is most likely due to the law of effect. This is a theory that states that "responses that produce a satisfying effect in a particular situation become more likely to occur again in that situation, and responses that produce a discomforting effect become less likely to occur again in that situation" - Edward Thorndike
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.