ToggleButton Vs Switch

Hi, I would like to know why there are two components ToggleButton and Switch when their functionality is same? Is there a specific use case to have two different components?

Hello,
The point is that ui.toggle it’s a two-state button.
and Switch Button is a slider variation of the Checkbox and Toggle Button controls

Thank you