How did US Coast Guard get its name?

They guard the coast.