It's not a ploy for clicks. Programmers spend a lot of time working with programming languages and so the choice of language is an interesting thing to mention, no matter what it might be.
https://hn.algolia.com/?query=written+in+c%2B%2B
https://hn.algolia.com/?query=written+in+python
https://hn.algolia.com/?query=written+in+go
https://hn.algolia.com/?query=written+in+rust
EDIT: There's one exception. "Written in bash" is and will always be clickbait, fight me