Credit card numbers

So the iTunes store wants my card number, expiry date, issue number and security code. And I type them in and it still doesn’t like my card. But why so many numbers? Can’t they just make the “card number” longer? How does having different categories of numbers improve security?