The former Doncaster midfielder picked up his first yellow following an altercation with Tykes striker Marlon Harewood as Barnsley prepared to take a free-kick in the 25th minute.
The visitors were then forced to play the final 53 minutes a man down after Stock was shown a second yellow for a cynical shirt pull on Jim O'Brien.
Substitute Danny Rose struck the winner for Barnsley five minutes from time when Clarets goalkeeper Brian Jensen could only touch Scott Golbourne's overhit cross onto the crossbar and back into the 19-year-old's path.
Dyche said: "It was inflicted out of our hands. We were in control of the game and not even at our best but still in control up until the sending off and, to be honest, contained the game well, even after the sending off.
"Referee's have a job to do and it's very difficult but the first booking is unfathomable on Brian Stock. I've seen it five times and he's nothing to do with it, I don't even get it.
"Harewood comes in and gives a push in the back of the head, I'm amazed our player gets booked, I've seen it so I'm even more amazed. He (Harewood) gave him a little nudge on his head and, as far as I knew, the rules state that that's off.
"Referees have a tough job but I think he's got it clearly wrong and the first booking then leads to, you know...you're always on that knife-edge after that.
"I've got no problems with the second because it happens, that's the rules. The first one I think it stunned everyone, you can sometimes tell by the reaction in the crowd.
"I'm convinced if we're 11 v 11 we go on and win the game."
- Sports & Recreation
- Marlon Harewood