Those cards may been in released for those sports. Many baseball players have cards in multi-sport sets where the focus isn't one sport, but many. Example, the 90s were famous for it (Classic, Signature, etc.). As for basketball and football, a player have made a cross-sport appearance. Hoops, for example, is a basketball brand/release. If a Twins player made an appearance on that card it would be classified as a basketball regardless of the Twins player as basketball is the sport release type.
My sins have come to face me, I can feel it
That I have lived my life in vain
And now I know I'll reap the seeds I've sown