It means this person told the judge, during her trial, "I did it."
People often do this as part of a deal. The judge will agree to reduce their sentence (punishment) if they plead guilty. When evidence is clearly against a person, pleading, "Not guilty." wastes a lot of time, so judges make deals in order to move on to another case.