Do songs have to relate with the singer's life?

They can, but songs can be written about anything that the songwriter wants to write about.