Turmeric is an natural indicator . It gives yellow colour in acidic solutions and red colour in basic solutions. The soap used to wash the clothes are basic in nature . Therefore, it gives red colour when turmeric stain washed from the shirt.
Regards