That’s not an issue though. That’s just how virtual machines work. You’re carving out a chunk of your system for the docker Linux VM that runs your containers.
You can open up the docker app and configure a smaller amount of ram if it impacts your host OS