What causes spotting after sex?

Derek
Me and my SO had sex last night and she said she had some spotting today but it's midway through her period what could cause that?