Why does my hair get matted after washing it?

I brush it before getting in the shower. I shampoo and rinse, then condition, wait five minutes, then rinse.