Turkey gives them to any rebel group they want to. I would assume here Turkey is giving them to the strongest rebel groups which have the best chance of overthrowing Assad. Turkey doesn't who the Rebels are associated with. So ISIS and other terrorist groups could indeed be receiving arms from the U.S., abet indirectly.
The above is just an example of how we do things, are we doing it this way, who knows?