There could be 2+ searches for the same model that are working differently. This separation is to prevent having too much not really model code in the model.
First thank you for your quick response and great explanation. So now the search function that was part of the model class in Yii1 is now in a separate model class in Yii2.