I feel this is a generalisation. A lot of coding assignments are unrelated to the actual work and have no value to the potential employer besides assessing skills.
I strongly doubt the take-home assignment is project code - not only would that be a legal minefield, but they couldn't compare across candidates. It's probably a standardized test. I personally vastly prefer these interviews to in-person whiteboard trivia sessions.