Hardwood floors are typically installed using a flooring nailer, which is a specialized tool designed specifically for this purpose. Flooring nailers use nails that are the correct size and type for hardwood flooring, and they drive the nails at a precise angle to ensure the planks are securely fastened to the subfloor.
If you tried using a regular nail gun to install hardwood floors, it could damage the wood, split the planks, or even cause the floor to buckle or warp.