Yes, all professions are like this. There is a wide distribution of abilities in the human race. When I go to see a medical doctor about a foot problem what I really would like to see is what grade he got in courses on feet! There are some who got A's and some who got C's and D's but still got the degree. Then there are those who are got A's in dishonesty. There is a reason for malpractice suits and with these we get to select from a plethora of lawyers who have their own distribution of abilities and honesty....
Anyway, not all EEs should get a bad review just because there are some that may deserve it. So don't be to quick to be harsh on other people. They may know a lot about something else.
I was an EE and Physics major and a professor to taught these skills plus others. Power devices and transmission or things like wiring a house and motors etc. are only still taught in a few places. Not usually the schools where the EE graduates get the highest starting salaries. EE has become a very broad field and in my department it was not even called EE any more. The name was changed to ECE (Electrical and Computer Engineering) many years ago. As the name implies, programing, logic, control, IC design, computers, math, physics, etc maybe learned based upon the student's own selection of courses to define his path. The most important thing is that students develop the skill of "how to learn" and that they learn the fundamentals. Then hopefully they can evolve and learn with the technology changes. If they "need" to learn it then hopefully they can learn how to wire up a house or a lathe or.... But some do not. In the case of logic circuits hopefully they can learn to use new technology as it has changed rapidly over the years. When I graduated, one even actually learned how a vacuum tube worked. Logic circuits were mostly TTL, but you could still buy RTL, DTL, and ECL was just emerging. MOS and later CMOS was still in the research labs. BiCMOS did not come about for years later. Computers were something that filled a room.
On the other hand most electricians do not have a four year college degree. In order to get a license they have to past tests on the codes. Most EEs do not have a license. Some do not have any idea what is inside the devices that they are wiring up.
Anyway, as Mark said, undo the box wiring and do it properly. Neutrals and grounds should not be tied together until the wires arrive at the main breaker box. Black for power, White for Neutral, Green for ground are conventional, but not required. So do not make assumptions. In a three way 110 switch circuit a red wire is sometimes introduced, but sometimes it is not certain. 220 lines commonly have a red wire. I have seen junction boxes where they are all white wires but have been colored via magic marker or tape just so the installer could keep them straight in his minded at the time. When a wire goes through a non-rubber feed through, like a metal clamp it should definitely have an extra layer of insulation.... like Romex or at least some rubber or electrical tape. What it appears that comes into your box in the photo is a three conductor extension cord (white) and there is no extra layer of insulation. I cannot say what it is without measurement or at least tracing. It could be 220 with a neutral and no ground? It could be 110 with power, neutral, and ground? You have to know which wire is being used for which line by measurement. Do not make assumptions. I cannot see what is coming from the motor as I cannot see in the photo what wires are connected to the wire nuts. It looks like there was a yellow(?) and a green wire from the VFD or the motor which were both grounded to the box? The info about this box is incomplete so we do not really know what we are looking at. We can only make assumptions and this is a mistake. It is unlikely that this connection was correct, but was done because there were no wires from the line(?) that they SHOULD connect to? Who knows what the yellow wire is for or goes to. Maybe it is really a white wire? Or does this wire even go to a motor or is it going to the VFD?
By the way, my 1930 house had a lot of knob and tube still being used when I moved in. It had been installed very professionally and seem to be very solid. However, many other kinds of wiring technologies had been introduced over the years. Several these had not held up as well as the knob and tube. Some of them, when you took the wire nut or tape off you found that the "rubber" wire insulation had decade to the point of just being like dust. Diagnosing knob and tube circuits is a wonderful exercise in puzzle solving. But my house insurance company would not insure a house with knob and tube. I suppose because many of them were not wired properly and so the entire technology gets a bad reputation. Anyway, I think I pulled almost everything out and rewired the house. Not my first house to rewire!
PS. There are some really good lawyers and some really good medical doctors. This is true of most professions.