Game Boy Color games work on the Game Boy Advance SP because it has hardware backward compatibility for Game Boy and Game Boy Color cartridges.
They do not work on the Nintendo DS because: