In my opinion it is better to talk to them about it.
I was taught not to tell anyone about it.
Kids are curious and they are going to find out eventually.
I was around 7 years old, at a friends house and we were in the basement and discovered the parents grow room. The dad was pissed off and highly stressed. I told him not to worry about it cause I knew what I seen. Then he became friends with my dad.