When I run the following code

webuse grunfeld, clear
bys company: asreg invest mvalue kstock, fmb newey(2)

I get the following results
Array

If I do not run the regression by company

asreg invest mvalue kstock, fmb newey(2)

I get exactly the same results.
Array

Does anyone know why these two different codes generate the same results?