How do music distribution companies work?

Music distribution companies take the music you send them and pass it on to online stores and streaming services.