It’s a feature that comes with my Android. When the phone was new during the initial startup it asks if I want to enable the feature which I did. If you have an Android you can likely find it in your settings.
Unless of course, it happens to be a unique feature to this particular brand which in my case is, Motorola.