The skin can get sore and inflamed under the mats, possibly even leading to infection. The yellow stuff you saw could have been pus, a sign of infection. That's why it's important to groom regularly, even daily. In a perfect world we would start them out as kittens and they would learn to love...