@toooobeeee @palmin not always, it can be just for the sake of it, and I quite liked the apparent dissociation between fun to write and fun to read. I'm sure these perl japh programs were hella fun to write!
https://retas.de/thomas/computer/programs/useless/japh/index.html
There's even contests for the most obfuscated programs!