MIAMI — Amed Rosario got sent to his room without dinner Sunday.

A day after loafing on the bases — he only reached first on a pop-up that dropped between outfielders, when he should have gotten to second — Rosario was absent from the starting lineup in the Mets’ 6-2 victory over the Marlins.

The shortstop finally got into the game in the seventh as part of a double switch that removed Adeiny Hechavarria.

Though manager Mickey Callaway initially told reporters Rosario was on the bench as part of a scheduled day off, he later indicated to SNY broadcasters the shortstop was being punished.

“I think that some of that stuff that we do internally needs to stay with us, but I think Rosie knows some of the reasons why he didn’t play today,” Callaway said after the game. “And more than anything I want to see Hech out there. I want to get Hech going, he’s been swinging the bat well, all the other stuff is stuff that needs to be done sometimes.”

When the Mets had last visited Marlins Park in May, the manager was grilled for not disciplining Robinson Cano , who had failed to run out multiple plays. Callaway defended Cano during that stretch, and to some degree took the same approach with Rosario on Sunday.

“[Rosario] does a heck of a job, he always hustles,” Callaway said. “The one time he didn’t, the ball drops and he should have been on second base. That is a learning lesson for him. But this guy works every single day and he’s made strides in every single part of his game. I’m happy with Rosie.”

Callaway said the situation was addressed Saturday night, with teammates also letting Rosario know he had erred.

“I think I got caught up in the emotion of popping out,” Rosario said. “It wasn’t the best decision to make.”

Rosario said he doesn’t believe Callaway singled him out.

“It’s just kind of my style of play where I’m always aggressive,” Rosario said. “And this time you kind of noticed I let my foot off the gas.”