A USB Hub allows you to connect up to 128 USB Devices to a single USB Port on a computer though you have to daisy chain quite a lot together to get that may devices plugged in.
Switches on the other hand are used in Networks and allow you to connect more than 1 computer through Ethernet Cables to whatever you need to. This is generally some form of Modem so all the computers can connect tot he internet though in closed systems it would be a Server and all the workstations connect tot he Server and this is generally where Data is Stored.
Or you could have a blade server and all the workstations are effectively Thin Clients so the blade does all the work and the workstations are only display and input devices connected through switches tot he Blade which in the old days we used to call Mainframes.
I hope that tells you the difference between a Switch and USB Hub so at the very least you know what you have bought though why you decided to buy something you have no idea what it does is not a question I can answer.