The artist (Theodore Gericault) wanted to emphasize, to stress, to point out, to put the character in the spotlight by giving him the flag or cloth to wave in the painting. He wanted to show that the men on the raft were desperate and wanted someone to save them, and didn't give up on hope yet at that moment.