The perception of wet dreams being a sin can vary since views on sexuality and dreams can differ among religious traditions, interpretations, and beliefs. While some religions consider any sexual release or thoughts outside of specific contexts as sinful, others may view wet dreams as a natural part of being human.
In Christianity, views on wet dreams can vary as some sects consider them normal while others view sexual arousal outside of marriage as sinful. Whereas in Buddhism, wet dreams are not sinful although masturbation is. That said, wet dreams are seen as distractions from the spiritual path and can be considered as hindrances to enlightenment.
It’s worth noting that many spiritual and religious traditions emphasize the importance of intentions, actions, and personal responsibility regarding moral and ethical considerations. Since wet dreams are involuntary, it’s less likely to be considered sinful since you’re not consciously trying to experience sexual arousal while sleeping.