Curiosity is normal, and children who are told nothing tend to go looking. Plain, calm honesty works better than mystery.
Start with a simple message that can be repeated at any age: if you ever see a gun, do not touch it, leave the area and tell an adult straight away. Say it again every so often, including to friends' children before they come to play.
Do not rely on talking alone
No lesson replaces a locked cabinet. Even a well-behaved child can be tempted when no one is looking, and a conversation does not unload a firearm. Keep everything locked up and out of sight, and keep keys or codes where children cannot find them.
Ask other households
It feels awkward, but asking whether there are firearms in the house where your child will play, and whether they are locked away, is a sensible, ordinary question. Many parents are glad to be asked.