> Ran into some situations on dell laptops where iT can control your laptop through the wifi connection
Yes... and...?
There are many centralized management systems available for every OS out there.
Many companies require them to be installed on company systems to protect against theft, or loss (they can remotely disable or wipe a system that has been lost or stolen, for example, preventing company data from getting leaked).
Such systems often include things like remote access support so that the company IT department can 'log in' remotely to help troubleshoot user problems., install software updates, etc.
Many hardware vendors also provide a centralized access method for mass provisioning - if you're setting up hundreds or thousands of servers, it's far easier to connect them to a network and provision them remotely that to have to boot up and install each one individually.
It's certainly not limited to Dell. There are numerous applications that work similarly on MacOS, too. They're essential tools when you manage a fleet of thousands of systems.
The key, though, is that NONE of these systems are 'open' out of the box. In the case of MDM (Mobile Device Management) systems, it has to be installed, which requires hardware access, or if it's installed as part of the OS, it has to be enabled/configured.
> Does apple protect you from any hackers?
That's a subjective question.
There's nothing 'out of the box' in MacOS that leaves it vulnerable to hackers and gives them unfettered access to your system (just like there's nothing in Windows, too, to be fair).
However, all systems are subject to incompetent user action (e.g. setting your password to '1234'), social engineering hacks ("hey, friend, this is your boss... click this random link I sent you... I promise it's legit!"), or brute force attacks.
MacOS is, arguably, better at making it hard for hackers to compromise your system. Even if you download a malicious app, there are safeguards against it reading your data or taking over your machine and the OS will prompt you to authenticate before letting such an app do so, but if you're unwary and don't question why this new game you downloaded wants to access your bank account or read all your files on disk) there's not much that can be done about it (other than that remote-wipe and reinstall that the MDM systems provide)