I think that's just because of the nature of photography at the time. They had to be perfectly still, and I don't think the custom of smiling for a picture had become common practice. With that said, I do not think they were particularly happy considering they were only a short time removed from the surrender.