Capture a Lost Soul by interacting with an empty bottle on it. Use the Bottled Lost Soul to release it, similar to a spawn egg.