I found an Araquanid in a Max Raid Battle and thought I should get it since Water Bubble is op. I successfully defeated and caught it, but it had Water Absorb despite it being its Hidden Ability.
The caught Pokémon's moves and Ability will be the same as it was during the Max Raid Battle; some Dynamax Pokémon encountered in Max Raid Battles will have their Hidden Ability.
It's possible to catch Pokemon with Hidden Abilities in Max Raid Dens.
Source