These are part of Apple's Vision Framework.
You can read more about the Vision Framework in their developer documentation: Vision Framework.
Developers using the Vision Framework can incorporate these features into their apps. As you will note in the Vision Framework documentation, the framework has been available since:
iOS 11.0+
iPadOS 11.0+
macOS 10.13+
Mac Catalyst 13.0+
tvOS 11.0+
visionOS 1.0+
So, nothing new.
Apple provides many of the frameworks that developers can use in their system library so the framework doesn't need to be packaged with each app that uses it. This makes apps smaller and sometimes allows apps to take advantage of fixes to frameworks without having to recompile. When Apple updates the system framework, all apps that rely on the system framework may benefit.
Of course, Apple uses such frameworks too—for example, allowing you to search for photos of your dog.
It is always good to be concerned about data privacy and where your information goes. So, it's always good to ask questions. However, I don't think there is anything nefarious going on here.
Hope this helps provide some context for your concerns.
Topic:
Machine Learning & AI
SubTopic:
General
Tags: