These verses are not an allegory, in which every part of the story has a separate theological meaning. Paul uses a simple illustration to make two main points:
Death can free a person from the law.
Ending one relationship can allow a person to start a new one.
Paul applies this example in 7:4.