Who writes hymns?

lots of people do, during lots of different times. for instance, the star spangled banner was written during a war.