Agree. Any suitable location. The code does prohibit certain locations (230.70(A)), but outdoors is fine. Probably half of the services I inspect have a panel outdoors.
Depending on the part of the country, you could find all or most residential installed outdoors such as here in the Sacramento Valley in CA, non- residential is a mixed bag.