Just out of curiosity, do pieces like these get written because a journalist is randomly interested in the idea, or does the author's publisher reach out to the magazine and suggest a puff piece topic?
Very much both. Plenty of pieces like this are PR-driven, but quality publications are always looking to write interesting pieces independently of PR pitches.
Many pieces come about because an individual journalist pitches an idea to their editor.