As we know Mac is unique and depends on hardware manufacture. So when communicating through mac it’s broadcasted to all the devices on network. In case of internet It has to do billions of comparisons and it will get to only one specific desired device.
Ip helps to overcome the problem as It contains both network and host address(depends upon Class of IP) bits so when you send to specific Ip address first your router will use masking to get the network address then It will send it to that address where again router in that network will use masking to get specific host address and packet will be delivered to that specific device Instead of broadcasting and sending it to everyone.