Why were sonnets written?

they were written about love for people in love bacically a love poem!!