The rock didn't "teach" you that lesson. You learned it on your own.
The rock cannot "teach" because teaching is an activity. It's a behavior. Rocks can't be active on their own; they cannot choose a behavior.
It's hair splitting, yes, but, I jsut wanted to add that information. Clarity of words leads to better understanding, I believe. That understanding can lead to changes in behavior, I agree.
Does this make sense now?
SHalom!