Photography was used, among other things, for demonstrating medical conditions, for mugshots (and compositing many photos to capture a “scientific” “type” of different sorts of criminals or members of particular social classes), for scientific imagery, for understanding movement (Muybridge & al.), for propaganda (well beyond “journalism”), for faddish semi-scams (like the famous “spirit” photographs), for documentation of people and places (with types of photos it would be quite a stretch to call either “journalism” or “portraiture”), for making reproductions of other types of art, and yes, for fine art in itself (there were huge debates about whether photography counted as “art” going right back to the beginning, with the pictorialists e.g. famously making their images out of focus or otherwise blurry, scratched, etc. so that it could be “art” instead of a purely mechanical process). Indeed, nearly all of the uses of photography date back to the 19th century, they just weren’t as widespread as today.