Why do my speakers charge my IPhone 5c?

I bought an adapter to plug my iPhone 5c in to an iPod Dock (worked on my friends 4s) . When I plug my phone in it just charges and when I try to put music on it just comes out from my phone speakers not the ones I plugged my iPhone in. Do I have to change something in the settings?

The adapter may not be capable of transfering the music