This is how the Tab element works, if you click Tab 2, then the Tab 2 pane will display. You can style the tabs to look like the buttons.
If you want the buttons elsewhere on the page and then to open a specific tab in the tab element, then you’ll probably need custom code.