You get Battle Points (BP) in Pokémon Sword and Shield by competing in the endgame Battle Tower. This Battle Tower sees you fight against other Pokémon trainers, and winning matches naturally rewards you with BP.