Understanding nonequilibrium scaling laws governing collapse of a polymer