"To her credit" means that you respect/admire that she did something. This is often used to compare it to something she did that you don't respect/admire/like. She was really rude to Mary the first time she met her.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.