I think it works if planned and coordinate but not if haphazard. I believe she comes out early in the Scandanivian, and in the Italian game, bringing the queen to f3 can help put pressure on f7 but this is more like a 6th move not 3rd. Like everything, have a plan and calculate your opponents best replies. If you dont see any tempo losing moves and it improves your position then it's ok.
Why do many beginners bring the queen out on the second or third move?

Then you play at your level and sometimes your plan works, sometimes not. But you are not really punished for it. And if you are you don’t understand it.
It then takes a while, a lot of games, and some study maybe, to understand that developing minor pieces is important. A new step.
Nothing wrong here I think. Just people having fun and learning the game.

Saying that, I beat a 1690 blitz player yesterday who brought his queen out on move 3 to scholars mate me, when I simple moved pawn e6, he immediately retreated his queen back to d1 and was simple one tempo down for no reason.
Then you play at your level and sometimes your plan works, sometimes not. But you are not really punished for it. And if you are you don’t understand it.
It then takes a while, a lot of games, and some study maybe, to understand that developing minor pieces is important. A new step.
Nothing wrong here I think. Just people having fun and learning the game.
People want mate, FAST.

I'm a beginner too but never do this.
Occasionally it will gain material for them but the vast majority of the time I just end up chasing their queen around the board while developing pieces.
What is the logic of bringing the queen out on the second or third move?
It's not really logic, it's results. Bad players keep playing badly because sometimes it wins games for them, so they don't have enough incentive to change.
More or less the same things happens for all of us.

Definitely not, if you play like most people. But it is a very easy way to put immediate pressure on Black, and if your opponent plays wrong, you gain a free pawn and rook.

I think they go on the basis that the queen is a powerful piece, without fully understanding the why is will fail. I don't bring my queen out early I hang pieces.
They're beginners? The queen is the most powerful piece?
+1
PLUS
4 Move Checkmate: Sneaky Variation

It seems like they just don't realize that it will be pushed back. I never tried the Wayward Queen Attack (1. e4 e5 2. Qh5) for that reason.
diftt0116 wrote:
It seems like they just don't realize that it will be pushed back. I never tried the Wayward Queen Attack (1. e4 e5 2. Qh5) for that reason.
This is what you mean?

diftt0116 wrote:
It seems like they just don't realize that it will be pushed back. I never tried the Wayward Queen Attack (1. e4 e5 2. Qh5) for that reason.
This is what you mean?
Yes.

diftt0116 wrote:
It seems like they just don't realize that it will be pushed back. I never tried the Wayward Queen Attack (1. e4 e5 2. Qh5) for that reason.
This is what you mean?
Yes.
Objectively that position isn't so bad. Black's on the better side of equal, so it's a bit like playing black instead of white (you're a little behind).
I'm a beginner too but never do this.
Occasionally it will gain material for them but the vast majority of the time I just end up chasing their queen around the board while developing pieces.
What is the logic of bringing the queen out on the second or third move?