We do not currently know of any antonyms for just for the heck of it.
For similar words to just for the heck of it, try: