The wording here is purposefully confusing. While a packet technically refers to layer 3, it is a common misnomer for "data transmitted on a network." It is uncommon to hear someone say a frame was transmitted, simply saying packet is much more common. A switch will receive a frame with a packet inside it and transmit the frame based on the MAC address in the frame header.
A network switch (also called switching hub, bridging hub, officially MAC bridge) is a computer networking device that connects devices together on a computer network by using packet switching to receive, process, and forward data to the destination device.
A network switch is a multiport network bridge that uses hardware addresses to process and forward data at the data link layer (layer 2) of the OSI model. Some switches can also process data at the network …