The analogy breaks down when considering AI to be like the paintbrush or other implement used to make the piece, not the human only indirectly involved in the claim.
So it's like saying Picasso can't claim the piece because the paint was laid down by a brush. It should therefore only belong to the brush.