As mentioned by Jon, your job match preferences indicate that you are actively looking. That, coupled with your Developer Story, means that you are indexed in our Candidate Search database and are therefore likely to be contacted by employers regarding open positions.
If you no longer want to receive those messages you can set your status to 'Not Looking' and you'll no longer be surfaced in Candidate Search. You can also block the employer by clicking 'Block Employer' in the messaging UI.
That said, the message you received was really not inline with our house rules and didn't contain anything about what job they were hiring for. We're looking into this now and will reach out to the employer to get them to send messages that actually have some use to the recipient in future.
Apologies for the inconvenience and thanks for the report.