ATLANTA — Michael King had that game he so often has, so angsty but in the end effective.

The Padres offense had that game it too often does, so frustrating and ultimately deflating.

Or it had enough of that game. It had that game until it was too late.

The Padres’ 7-6 loss to the Braves was not the offensive battle the score suggested.

After seven innings of doing virtually nothing, the Braves scored six runs in the bottom of the eighth against Wandy Peralta and Randy Vásquez. After eight innings of doing virtually nothing, the Padres scored five runs against Victor Mederos and Raisel Iglesias.

“Kind of the way baseball goes a little bit,” Padres manager Craig Stammen said.

He was not at all being flippant about the way the game ended. He was being honest about how the Padres’ ninth inning was largely perpetrated against lower-leverage reliever in the game because of the large cushion the Braves had.

The Padres and Braves were tied 1-1 when the eighth inning began. The only scoring being the Braves’ run in the first inning on three walks and a groundout and Jackson Merrill’s game-tying home run in the seventh inning.

Peralta then allowed three hits and walked a batter after getting the first out of the eighth, and Vásquez surrendered four hits that could easily have been outs.

Then, after they went 0-for-6 with runners in scoring position in the first eight innings Wednesday, the Padres scored three runs on a walk and three hits against Mederos and Luis Rengifo’s two-run home run against Raisel Iglesias before Manny Machado and Ty France struck out to end the game.

“Games like that can only happen when you’re quiet for the first part of it and then you kind of get awake at the end,” Merrill said. “I’m proud of the boys for fighting.”

Taken in its entirety, Wednesday’s game was among the most illustrative of what is wrong with the Padres that, after 102 games, perhaps can’t be fixed by any addition(s) at the trade deadline.

And this loss was a tangible step backward, as all five teams ahead of the Padres in the race for the final National League playoff spot won on Wednesday.

After gaining ground despite losing three of their first five games on this 10-game road trip, the Padres on Wednesday fell to three games behind the Diamondbacks

King was not sharp. He was in and out of trouble, like a magician who escapes handcuffs and a straightjacket.

He walked the first three batters he faced, and the Braves took a 1-0 lead on Michael Harris II’s groundout before King struck out the next two batters.

The Braves would have at least one man on base in each of King’s six innings, including runners at the corners with one out in the fourth, but they would not score off him again.

King departed after throwing 95 pitches, having tied his season highs with seven hits allowed and four walks while striking out seven.

After King departed, the Padres threatened to reward him by putting him in line for the win.

Leading off the seventh, Merrill got the Padres even by sending an 0-2 fastball from Didier Fuentes a projected 449 feet, where it landed in a pond that feeds into a waterfall beyond center field.

It was Merrill’s fourth home run in four games and the longest of his career, and it was his second hit of the game and the Padres’ second hit of the game.

The Padres would get two more hits in the seventh — singles by Xander Bogaerts and Jake Cronenworth.

But after pinch-hitter Gavin Sheets flied out to left field, a double steal opened first base and the Braves intentionally walked Fernando Tatis Jr. to bring up Rengifo, who popped out on the first pitch he saw from Fuentes.

“We had Pérez a little bit on the ropes with the way he was not commanding the zone the way he wanted to, but he was able to make some good pitches,” Stammen said. “We weren’t really able to get any hits off of him. We had people on base but were unable to come through in the big moment there with him. Then they’ve got a really good bullpen, and we battled them. They kind of went down the line with their guys. Jackson had a big home run to tie it up, gave us a chance, and we just had one bad inning on the mound in the eighth that just didn’t go our way. Wandy wasn’t very sharp, and then a bunch of unlucky hits against Randy is what I’ll say there.”