Our brains have evolved to seek pleasure because during prehistory this drive was crucial for survival. This is why it seems crucial that you should fap.
Early humans needed to find food, shelter, and mates to ensure their survival and the continuation of their species. Engaging in pleasurable activities such as eating nutritious food or reproducing, triggered the release of dopamine, reinforcing these behaviours and encouraging people to pursue what brought them satisfaction.