طبيب (Moroccan Arabic) comes from Arabic طَبِيب, from Arabic ب, from Arabic طَابَق, from Middle Persian tʾp̄k', from Proto-Iranian tāpaka-, from Proto-Iranian tap-, from Proto-Indo-European tep- — to be warm, be hot.
طبيب (Moroccan Arabic): doctor, physician