You do not say what exact Mac /model /year /size /retina /touchbar is this ?
Newer Mac notebooks turn on when you do these things:
- Open the lid of your Mac, even if it's not connected to power.
- Connect your Mac to a power adapter while its lid is open.
- Connect your Mac to a power adapter while its lid is closed and it's connected to an external display.
Additionally, MacBook Pro (2018) and MacBook Air (Retina, 13-inch,
2018) turn on when you press any key on the keyboard or press the
trackpad.
How to turn your Mac on or off - Apple Support