Where are scheduled tasks controlled from?

If you search for Jobs::Scheduled you should find them in the codebase.

This particular one is likely CleanUpInactiveUsers which removes users with no posts who have not seen in clean_up_inactive_users_after_days (and several other conditions you see in the code).