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 subtle and woven into the narrative through characters, events, and their interactions, rather than being explicitly stated.