When you export to EPUB, a table of contents will automatically be created based on the entries that appear in the table of contents view in Pages. A Pages document with no entries in the table of contents view will be exported to EPUB without a table of contents.