The best description of how the theme of a story emerges is:
It is never directly stated but can be inferred based on what happens.
Themes are often subtly woven into the narrative through characters' actions, dialogues, and the overall story arc, allowing readers to deduce the underlying messages without them being explicitly stated.