It has two main purposes: the first purpose is just to act as an extension of a PC; you can deposit and withdraw your Pokemon into it if you so desire. It's second purpose is to transfer Pokemon from Generation 6 games to Generation 7 games. And it has nothing to do with competitive battling.