You have to see as a benefit to you (assuming you're competent), because:
1) You are much less likely to work with an idiot (most of them won't even submit a code sample, or it will be so bad it will be rejected), and
2) Since they can see the level of quality of your work, landing the job and negotiating a higher salary will be easier than just going on your resume alone, which everyone has
For awhile I was always unsure of what to send as a coding sample since most of the code I work was either for my day job or for contracting. I didn't feel comfortable "making up" a purpose for code. If that's you, you can try answering a public coding challenge and submitting it to the employer, like this one http://dotspots.com/jobs/challenges/