This is a Known behavior in SharePoint.
Most of the objects in a site are included and supported by the template. However, there are several objects and features that are not supported.
Supported: Lists, libraries, external lists, data source connections, list views and data views, custom forms, workflows, content types, custom actions, navigation, site pages, master pages, modules, and web templates.
Unsupported: Customized permissions, running workflow instances, list item version history, workflow tasks associated with running workflows, people or group field values, taxonomy field values, publishing pages and publishing sites, My Sites, stapled features, SharePoint Add-ins, and remote event receivers.
You can read more about SharePoint site templates in below article:
What gets saved in a template?