This chain encourages the rainwater to flow from the overflowing gutter to the plant pot below. Since this is at a River thames lock, it may be re-purposed hardware from the manually operated lock paddles.