Both Zigbee and Z wave are “mesh” protocols which means that most mains-powered devices can pass along messages from other devices of the same protocol on the network. Not just the hub. So you extend the range just by adding more mains-powered devices of the protocol that you are trying to extend. These are typically in wall relays, pocket sockets, plug in motion sensors, and some light switches.
Read the following thread which discusses setting up zwave to cover a big house for the basic concepts.
Then read the next thread for issues specific to an outdoor building like a shed where the hub is in the main house.
Setting up a second hub inside the outbuilding as a second location is always the most reliable option because there are no concerns about weather. But it does make setting up the logic to coordinate the shed devices with the house devices somewhat more complicated. So it’s definitely an option, but it’s not usually someone’s first choice.