The transparency comes with you
This is the reason to choose WebP over JPG when you need a smaller file. WebP carries a full alpha channel, so every transparent pixel survives exactly as it was.
That makes it the only sensible small format for logos, icons, product cut-outs and anything else that has to sit on a colored background. Converting those to JPG fills the transparency with white and ruins them; converting to WebP does not.