I personally like to think there is a difference "developers" and "engineers", although in some cases the region is very unclear. In college, the software development I see is very mediocre to autistic to excellent. And then there is a course called "Advanced Programming", intended for people who don't know how to program and need to learn it; which in my opinion was a bit deceiving.
I think one further interesting point to make about unit testing is that it also gives room to deviate from only happy path testing. What does my software do when a certain collection does not contain all arguments to get started (e.g. some input JSON data)? Or some day you spot a bug that highlighted some faulty dependence between A and event B; let's write a test that reproduces this fault, and make sure it stays fixed in future revisions.
Although EE and SW are quite different fields; I do honestly think that both share some merits. It's relatively easy to get some piece of software to function and do a job. But to get it reliable, be safe, pass all regulations and maintainable is a completely what makes it challenging.
For example: in electronics it's also relatively easy to get something functional. But then optimizing for cost, power consumption, passing CE (electrical safety, isolation, EMI, ESD), temperature cycling, hot plugging power and connections, deploying at customer while offering solutions for remote testing and debugging.. So much extra "engineering" left to do from the core concept..
I think this also mostly separates hobby from "work". I like playing around with technology and concepts. But to some degree the "engineering aspect" to me is just work.. a grind. I don't mind it, but I do notice that in hobby projects I tend to lose interest once I reach some of the first milestones I had set, as it feels like I've accomplished what I set out to do. I would probably need to double the time spend in order to make it usable and stable on a day to day basis. But for "tinkering" this suffices. Not if you deploy a piece of hardware or software on the other side of the world, and the product needs to work because it's use is only relevant for 2 weeks per year.