Wasn’t the criticism of photography kind of correct though? I don’t think people think of photography as an art as much as painting is an art.
There aren’t a lot of photographs that a layman couldn’t in principle also take, but only a few people could replicate a good painting.