At first I was thinking did I accidentally step into a yuri but now I'm thinking that feeling from before was of kindred spirits.
They've both been stepped on and abused by the people that should have protected them. I think they subconsciously recognized that.