Content got duplicate when create multiple pages with the same template

Do you mean you created two pages(page-1&page2) and you’ve set them both to an alternate template so they use the same template filepage.alternate.liquid’ which means they share the same section as well.

When you edit the section it’s the same section used for both pages, you need to make a separate unique template if you want unique unshared sections.