Tbh as a young dev without a lot of experience in today's market (added because of some of the comments), you need to have a professional LinkedIn persona, and that's true with many jobs. I can see this being useful for those who can't afford/don't have access to a way to get a good headshot.
That being said I'd be wary of what service you use to make a headshot, because a lot of them will probably use your data to train their AI, and/or steal the data from your cellphone if it's an app