Original: The songs are usually used to advance the plot or develop the film's characters, but some musical films (e.g.Down Argentine Way) simply plop the songs in as unrelated "specialties" - as with Carmen Miranda's numbers.
Simplified: The songs are used to advance the plot or develop the movie's characters.