The 'clear' coating on the outside of cups, mugs, teapots, etc. often contains lead, and slightly acidic drinks or water will cause it to leach out. That has a much bigger impact than leaded paint, because you typically don't lick your paint.
Lead glaze is most often used in artisan, novelty or complex items, because the lead oxide acts as a flux which allows the glazing to be done at a lower temperature, which is necessary when glazing complex objects which would otherwise melt or crack during the glazing process. Lead is also far easier to use, because it works over a wider temperature range, so if you do a "make your own pottery" day, you'll probably be using lead flux in your glaze.
[1]: https://www.efsa.europa.eu/sites/default/files/event/2005/af...