Yield aggregators essentially automate the process of staking and collecting the generated rewards on behalf of users, to optimize gas fee spending via different strategies [sometimes complex]. These strategies involve moving tokens around different platforms and maximizing yields via auto compounding.