This was the old gaol or lock-up of the village Nether Stowey. Many villages around the UK had a lock-up to detain drunk people or people having done something wrong. Some were just small buildings with a bed and a loo inside.