Colossus Hammer can be attached to a creature that didn't have flying to begin with. It just won't lose flying.

Artwork
Loading artwork…
Colossus Hammer
Final Fantasy Commander · #338 · EN
Nonfoil—Foil—
Card rules
Equipped creature gets +10/+10 and loses flying.
Equip 8 (8: Attach to target creature you control. Equip only as a sorcery.)
"Sorry to keep you waiting. It's me! I'll handle the rest!"
Uncommon · Illustrated by Kevin Sidharta
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If the equipped creature gains flying after Colossus Hammer became attached to it, it will keep flying.
If an ability of the equipped creature states that it has flying "as long as" a particular condition is true, that condition becoming true will not cause that creature to gain flying. For example, if the equipped creature "has flying as long as it's attacking," it will not gain flying, even if it attacks after Colossus Hammer becomes attached to it.