If you placed your headers and footers in the template, they will be there in the new document based on the template. How are you starting your new document based on the template? Double-clicking on the template?
It is quite possible that you saved your new styles not just in your template but also in the normal template. If you did that, they would show up in new documents that are
not based on your custom template.