Hello there,
That is because widgets are placed in the widget area and widget area are defined in the theme i.e widget areas are theme specific. That is the reason whenever you switch the theme, the widgets areas are also switched along with the widget.
Hope this clarifies your confusion.
Thanks.