Difference with PCB is that it is normally one off job. If you are building a one off application or a script, clean code is not very important.
If you are building a system that will be used for years and needs to be extensible than it makes much more sense. Just like it would make sense if you got your PCB back and needed to change features or add new ones.