Sheet music became commonplace in homes starting about 1840. Postcards came along some years later, but when the songwriters put their pens to a score postcards and music were a perfect match.
Postcards of prisons were seldom used as change of address notices, but they do remind us that even in our modern day world, prisons are as necessary as they were centuries ago.