Since you expose your IP through a web server, IP grabbers' sites extract or pull this IP from such sites. Typically, people send links which when you click them, your IP is exposed.