Because "just coding something" won't cover every method/function idiom you've ever learned. Creating a card with a corresponding challenge can do that. If you just make a Ruby script to practice programming you're allowing yourself to forget another language or framework knowledge.