With electronics you might get your PCBs manufactured and assembled by someone else (it’s a specialised job that needs expensive equipment).
But you can do the design locally with skilled engineers.
With enclosures and plastic parts you need injection moulding setups - again a specialised thing to do. So you might also choose to outsource that.
But you have local people who do the CAD and mould design.
What you’ll end up doing is the assembly side of things - so someone else will be doing the actual hard manufacturing of parts and you’ll be plugging things together and packaging things up.
As soon as you realise that then it’s quickly obvious that should be done where all the component parts are being manufactured.
So, you end up just doing the R&D part.
But eventually you realise that your manufacturing partners understand and know a lot more than your local people.
So, you end up outsourcing everything to China…