for fun; half in jest
Describes doing something partly for amusement, often with a lighthearted or not entirely serious attitude. Commonly used with に as an adverb.
He probably said that half in jest.
A hobby I started just for fun has now become my job.