After period

I get my period for 5 days so on my 5th day i stop bleeding so whole day there was no blood .i went to the toilet an was peeing next min i.see im.bleeding an a blood.cloth came out so how come when today is the day period finishes how come cloth an blood came