Also, embedded software doesn't / can't make use of existing libraries because of code size (but this is changing)
And of course you can't really compare PHP+JS+what else in Facebook with C+Java+Assembly of car embedded systems
But yeah, hardware companies don't know how to make software