He's probably done it once, and then carried on as either a habit or because he thinks that is the place he is supposed to do it. Or, potentially, depending on who sleeps in there (i.e. if anyone sleeps there with you), then he may be marking his territory against that person, or you, depending on who he is most bonded with. If you can, prevent him from going on your bed to avoid the issue completely.