There isn't any rule that requires websites to use a cookie banner. Your required to obtain explicit consent before reading/setting any cookies that aren't strictly necessary. The web came up with the cookie banner.
Google could've implemented a consent API in Chrome, but they didn't. Guess why.