Buying food from street vendors carries some degree of risk. Tap water, while completely clean and OK to drink, could cause mild stomach upset due to different mineral composition. It’s absolutely fine for rinsing fruit and for brushing teeth. There is plenty of bottled water available throughout the country. Morocco is basically malaria-free.