Maybe he was a closeted follower of a 6th-7th century prophet.
That’s not the only religion that lacks what we would consider age of consent.