The inspiration for it was. The creation of it was not.
Personally, I wouldn't label keen observation and intellectual curiosity as "accidental".
It could fit, if you look at it happening "by chance."
If his dog didn't get these burrs stuck to its fur all the time, he'd likely never have looked at them.