Baby sitting

Not sure where to post this but I'm watching a little girl today I know the family well and know that they r not the cleanest long story short the little girl smelled horrible and clothes where beyound filthy so I gave her a bath and I'm washing the clothes she had on as well as the clothes that she packed I put her in my daughter's clean clothes but why do i feel like a shity friend... th because I couldn't stand the smell... would u of done the same thing?