The second theme is different from the opening theme because it's in a major key.
This difference allows:
In this case, we can say that the change in Key is performed at an opportune moment to catch the listener's attention and direct the rest of the melody.
More information:
https://brainly.com/question/19950290?referrer=searchResults