I hit some keys on accident and then noticed that there was a dashed box that is somehow attached to the object. It is visible in object and edit mode but I cannot select it.
I thought it was a parenting issue, but I cannot find anything it is attached to and it is not a bounding box. (It is a child of an empty).
See attached image. Orange arrow pointing at mystery object.