That doesn't seem any different than asking a software engineer candidate to complete a take home coding assessment. If you don't like it then find another company to work with.
Per the comment you're responding to (I don't know the veracity of the claim) it's much different: take home assignments aren't kept as intellectual property.