Before electric carpet cleaning machines (vacuum cleaners) and mobile carpet cleaning companies were the common way to clean carpet, the carpet was rolled up, taken outside and hung on the clothes line.  This item was then used to beat the carpet to remove the dust and dirt.