Songwriting credits are given for other attributes as well, such as changing harmonies/melodies, etc. It's not specifically just for coming up with lyrics
They are obviously suing because they never got paid for it. They may be credited, but they also need to be given a certain amount of royalties of the song.