In your second example, you should have highlighted
muss, which is the inflected verb here, which is always in the second position in an in a declarative sentence (as opposed to a question or a relative clause or whatever).
Same as in English: "All verbs are at the end? That doesn't have to be".