All of the responses provided are valid ways in which genre can affect the theme of a text. However, if you need to choose the most encompassing explanation, you might consider:
Genre affects which themes can be presented in the story.
This response highlights how different genres often come with conventions and expectations that can influence the themes that are explored or deemed appropriate, thereby affecting the overall narrative.