Socrates' social circle were free Athenian citizens. They wouldn't have "gone to the marketplace to buy food", because food shopping was the task of slaves. Free Athenians went to the agora largely for socializing and hearing the latest news, so philosophical dialogues were less annoying and disruptive than you assume. It was certain of Socrates' ideas that got him into trouble, not his public philosophizing per se.