:welcome: Zammm
The short answer is that the bed ends are canvas and if you lay against them when it is wet then naturally the water will seep through the canvas no matter what you do.
So two options.
1. Move all items away from canvas (can be difficult)
2. Kit yourself up with some waterproof bed ends.
So search the forum for bed ends and you will come up with a plethora of options.