Why does macOS the Terminal app 10.14.6 not restore all tabs and the history when starting it

I'm pretty new to macOS and wondering why the Terminal application shipped with macOS 10.14.6 would not automatically save and restore the configuration including all windows, tabs and the edit history?