Black hole mystery unveiled by magnetic star discovery