> For the same reason artists do
They're asking more how it would happen, less for what purpose.
Artists automatically accumulate portfolios by doing work that gets displayed in public. Programmers who work on closed-source programs don't—unless they supplement their work-for-pay in ways that artists aren't expected to. The artist's history of work itself is how they get more work; the programmer's isn't.