For the sake of learning:
* For educational purposes
* To expand one's understanding
* To gain enlightenment
* Out of curiosity
* To satisfy intellectual curiosity
For the sake of knowing:
* For the sheer joy of knowing
* To increase one's wisdom
* To become more informed
* To acquire knowledge
Ultimately, the best substitute will depend on the specific meaning you want to convey.