There was context. She was in love with the previous judge, and kept mixing up her feelings for him with her feelings for the mc. She seems to have been able to realize they are seperate people.
Ok at first i didnt really like how she was just stuck in the past, cause i might be dumb for this but when a trope in romance like that happens i often think its just ntr or smth