As per your query,inner part of hairs of the scrotum
get infected and lead to redness
of scrotum.So,redness is due to infection and associated inflammation.
You have to keep the scrotum clean.Public hair should be removed regularly
Please take antibiotics and antiinflammatory drugs if it occurs.
Please consult a Dermatologist
when the problem arises next time.
Wish you good health