I've seen several people do this and assumed it was a beginner's mistake (since I'm a beginner myself and I play on the chess.com app usually only against other players within 25 points of my rating), especially since, going through game reviews, the engine usually shows those opening moves as giving less of an advantage than moving the king or queen's pawn to make room for the bishop's to develop and take space in the center.
But I was just reading this chess.com article on popular modern openings and several of the specific openings they look at, such as the Nasdorf variation of the Sicilian defense, involving moving a pawn on the b or c file prior to even developing the knights or bishops. And these are all presented as perfectly valid openings.
But I don't understand. Unless it's to defend against an immediate attack, why move those pawns instead of immediately both grabbing space in the center and preparing a bishop for development by moving the king or queen's pawn? What's the potential benefit?