if nobody could show their portfolio, then nobody would get an advantage from doing so.
but since people can show it in the programming world, you are at a disadvantage if you don't.
if a civil engineer had some way to show what they could do, I'm sure it'd give them an advantage.