I had a friend that did an interview homework assignment, was declined for the job, then found out that they used his assignment's code in production through a friend that already worked at the company.
While I'll admit that this is atypical, it seems like something a more nefarious company could abuse.