Your dog sits perfectly in the kitchen but appears to have forgotten the cue at the park. That doesn't necessarily mean your training failed.
Context matters
Dogs can become very good at associating a behavior with a particular environment, posture, distance, or set of surrounding cues.
The kitchen may effectively become part of the sit behavior because that's where most successful repetitions happened.
Train the behavior in different places
Once your dog understands a behavior, deliberately practice it in new rooms, outside, on quiet walks, near the front door, and eventually around suitable distractions.
Change one difficulty factor at a time where possible. A new location combined with loud traffic, other dogs, and a long distance may be too much at once.
Think of every location as another chapter
Each new environment gives your dog an opportunity to learn that the cue remains meaningful even when the surrounding details change.
Generalization isn't a final exam after training. It's part of training itself.