High Noon in Mayberry - S3-E17
Deliberate mistake: While Luke and Andy are in the house, Barney, Gomer, and Otis are hiding on the porch, and Barney has the idea to turn off the lights in the house, so he goes to the circuit box located beside the windows on the front porch and switches the lights off. The problem is that this circuit box is located on the porch only for this episode as a plot point.
Answer: It was a joke. They were supposed to be dumb hillbillies.
Both. According to later interviews with both Andy and the Dillards band (the real name of the band that played the parts of the Darling children, of which Charlene (Maggie Peterson - Mancuso was also a member) the reason the Darling boys never had any lines was because they would've had to have been paid if they spoke. In return for appearing without lines or pay, Andy promised to get as much of their music onto the show as possible which, he did. This obviously gave them a lot of exposure.