Is a doctor also going to publish achievements? A construction engineer should he/she publish calc of beam dimensions? A carpenter how should he/her show creations. If it was doors or windows installed in people's houses. Something is wrong here in this industry.
Education, licenses, and similar - often in combination.
The world of software development is MUCH more open to people that necessarily don't have the correct formalities, because there's a common knowledge that there are tons of talented people that never studied CS / Software Engineering / etc.
That, combined with high pay, of course attracts a lot of incompetent people.
So what would the solution be, to require all "professional" developers to have a degree and/or some professional license? I mean, yes, it could work - just look at the Cisco certification system. Some of those are quite rigorous, so the networking industry knows that if you hire someone that hold certain certs, they're probably competent.
But, then again, most the certifications boom of the 90s kinda died out.
That's why we're stuck with the grinding leetcode + technical interviews + side projects situation today.