Some Pokemon with hidden abilities can be obtained from events.
(ex. Hidden Ability Johto starters event lasted from Feb. 27 - Nov. 30, 2015)
Or, in this case with Sword and Shield, Max Raid Battle Events. Pokemon from Max Raid events have a chance of having a hidden ability.