Did you do this as a response to the shot or in general?
A bit of both really. If the ball is coming fast and deep I find it is easier to position a few feet behind the baseline. It's easier to move forward when there's a short ball than to back up. I used to think that hugging the baseline was the best thing to do as most coaches and comentators I've heard say to try to play close to the baseline. It depends what's happening at the other end of the court though. Now i hardly ever get jammed at the baseline.