Here's why:
* Compared to other stars: There are much larger stars in the universe, called giants and supergiants. Our sun is significantly smaller than these.
* Compared to smaller stars: There are also many smaller stars, called red dwarfs. Our sun is bigger than these.
So, our sun falls comfortably in the "medium" category.