If Earth is a gigantic magnet why does it will not attract magnetic materials?
The Earth is very weak magnet due to its immense size. So, its interaction with other magnetic material is negligible compared, to say, the interaction between artificial bar magnets.