You're right, a hub is simply a multi-port repeater. As such it doesn't require any type of processor or often any additional power aside from what comes through the patch cable that is connected to it. When switches first came around they were called "smart hubs." While a hub simply repeats the same signal to all ports, a switch has some sort of processor and software (though this may simply be a few kilobytes on a flash module) and would only have to do this once, after which it would send information to the specific MAC address of the intended device (i.e. the NIC card of a specific computer) through a virtual circuit.
P.S.
I haven't had any conversation containing the OSI model in a long time, its nice to get back into networking nerd-dom.