I suspect that the stand function is sensitive to movement horizontally so a treadmill walk, which stays in one location, may be as unable to be recognized as standing at a desk. Likely uses the location function that enables other apps like maps and “Find My iXXX”. A static spot doesn’t register.