This is handy for accounts that receive a lot of irrelevant emails that clutter your inbox, which are only occasionally needed.
This is a basic feature in Apple Mail.