Keep in mind he's following a certain someone's plan. That person is not particularly worried about his physical safety or health, and in fact she would argue he deserved the punishment if he really wanted redemption.
Ooh, I gotcha. He prayed for guidance and got the knowledge of Poseidon's gift, and in turn, had our gracious narrator pit his resolve, huh? Thanks!