Barrel

Barrels are block entities used to store items.

Natural generation
Barrels can generate naturally in fisher cottages in villages.

Container
Barrels have a container inventory similar to a single chest. They can be filled by droppers and both filled and emptied by hoppers. When broken, barrels drop the contents of the container and the barrel item itself. Unlike chests, a barrel can be placed below a solid block and still be able to be opened.

Fuel
Barrels can be used as a fuel in furnaces, smelting 1.5 items per block.

Change Profession
If a village has a barrel and there is no fisherman villager in the village, any villager who didn't already pick workstation has a chance to change their profession into a fisherman.‌

Block entity
A barrel has a block entity associated with it that holds additional data about the block.