Welcome to Android Central! In the Favorites tab of your Phone app, it's typically a combination of contacts you already designated as favorites and contacts you've frequently called in recent times.
This is determined by the logic of the phone application, but most of them should be manually clicked by the user to add to my favorite, and automatically added to my favorite by frequency is less