Why is there a plastic ball inside this beer? (iPhone photo)

Why is there a plastic ball inside this beer? (iPhone photo)