The opening times data on Google comes from business owners who create an account on Google and then create a Business Profile (in rare cases, Google scrapes it from the website but it needs to be presented in a specific machine readable form[1] which, let's be honest, most websites do not, especially small businesses).
Apple probably just need to spread the word more that they have an equivalent mechanism in place.[2]
[1]https://developers.google.com/search/docs/advanced/structure... [2] https://register.apple.com/placesonmaps/