More accurately, there has never been a EU law that forced people to create cookie banners.
The EU law required websites to have the users' consent to use personal data and tracking. The law never even mentioned the word "banner" but this is what the industry chose as a solution.
Furthermore consent is not needed for functional cookies. So all websites that enforce cookie banners upon users do really use tracking/data sharing or their partners (such as Google Analytics) do.