This scene occurs if Misty visits Ash's house at night while they're staying at the Viridian City inn. Misty takes a walk to distract herself from how horny she is.