Poké Balls don't capture Pokémon against their will. They also aren't prisons either, as Pokémon can leave them whenever they want.
>>58053732The Master Ball CATCHES any Pokémon without fail but the Pokémon can still leave it afterwards. A Pokémon's loyalty is a different matter to catching them.