Switches have always offered better throughput, flexibility, and system reliability than hubs, but at a premium price.
Switches move data between network nodes without contention.
By contrast, hubs share a single channel among all ports using Ethernet's contention scheme. A hub works fine until somebody starts listening to an Internet radio broadcast or conducting a video meeting. Applications that stream data raise the contention activity in hubs. The LAN doesn't choke because of throughput limitations, it chokes because of contention for access. Adding a switch eliminates contention.