This conversion runs in the less common direction — most people are looking to go from PNG to JPG to save space, not the other way around. Converting JPG to PNG comes up in a narrower, more specific situation: you need a lossless version of a photo to work with, even though the photo started life as a JPG.
Why you’d deliberately make a file bigger
JPG’s lossy compression is efficient precisely because it’s willing to throw away detail the eye is unlikely to miss. That’s a fine tradeoff for a finished photo you’re going to view or share as-is — but it becomes a real cost if you’re about to edit that photo across several rounds of changes, each involving its own save or export step. Re-saving a JPG repeatedly compounds quality loss each time, since every save re-applies lossy compression on top of whatever’s already there. Converting to a lossless format like PNG before you start editing means everything you do from that point forward — crops, color adjustments, retouching, compositing — happens without that compounding loss, right up until you export your final result (potentially back to JPG, at that point, for sharing).
It’s worth being precise about what this does and doesn’t fix: converting an already-compressed JPG to PNG doesn’t recover any detail that JPG’s original compression already discarded. That loss happened once, when the file was first saved as a JPG, and it’s permanent. What PNG conversion buys you is a clean stopping point — no further generational loss as you continue working with the file.
The other reason: adding transparency later
JPG has no concept of a transparent pixel — every pixel is fully opaque, always. If your plan for a photo involves removing or replacing its background, compositing it over another image, or turning it into a sticker-style cutout, you’ll eventually need a format that supports an alpha channel. PNG does; JPG fundamentally can’t, no matter what software you use. Converting to PNG first doesn’t add transparency on its own — the photo is still fully opaque the moment it becomes a PNG — but it puts you in a format where adding transparency afterward, with an editor that supports it, is actually possible.
What you’re paying for this flexibility
File size, mainly, and often substantially. PNG’s lossless compression handles the smooth, continuously-varying detail in a typical photograph far less efficiently than JPG’s lossy compression does, so a PNG version of an ordinary photo commonly ends up several times larger than the JPG it came from — sometimes considerably more, depending on how much fine detail and gradient the image contains. That’s an expected, reasonable cost for a temporary working file during editing; it’s generally not worth keeping the PNG version as your final, long-term copy once you’re done, since at that point you’re paying the storage and bandwidth cost of losslessness without actually needing it anymore.