President Donald Trump has told Puerto Rico officials they should be "proud" they did not lose thousands of lives as in "a real catastrophe like Katrina".
Mr Trump also said the storm-ravaged US territory had thrown the American budget "a little out of whack".
Before landing on the island, Mr Trump graded his administration's response to Hurricane Maria as an "A plus".
Puerto Rico officials have criticised the US government's handling of the natural disaster as too slow.
Following the visit, the White House announced it was preparing to send a $29bn (£22bn) disaster aid request to Congress.
Of that, $13bn would be for hurricane victims in Puerto Rico, Florida and Texas, while the other $16bn would be for the government-backed flood insurance programme.
Tuesday's five-hour presidential trip to the Puerto Rican capital San Juan came two weeks after the storm devastated the island.
"I've been to Puerto Rico many times and the weather is second to none but sometimes you get hit - and you got hit," Mr Trump told officials at an Air National Guard base.
"Every death is a horror," the president added, "but if you look at a real catastrophe like Katrina, and you look at the tremendous - hundreds and hundreds and hundreds of people that died, and you look at what happened here, with really a storm that was just totally overpowering, nobody's ever seen anything like this."
In his apparently impromptu remarks, he turned to emergency responders to ask how many Puerto Ricans had died as a result of the storm.
"What is your death count as of this moment? Seventeen? Sixteen people certified, 16 people versus in the thousands," he said, referring to the 2005 hurricane that killed 1,833 people in New Orleans.
The number killed by Maria was later increased to 34, with 19 killed directly by the hurricane, according to a spokesman for Governor Ricardo Rosello.
Mr Trump also pointed out the impact on US spending from storm recovery on the island, which itself was already facing a budget shortfall of $72bn (£54bn).
"Now, I hate to tell you, Puerto Rico, but you've thrown our budget a little out of whack because we've spent a lot of money on Puerto Rico, and that's fine," he said.
"We've saved a lot of lives," he added.
The president and First Lady Melania Trump met survivors in the town of Guaynabo.
As the presidential motorcade drove down roads strewn with hurricane debris, a woman at the roadside held up a sign that read: "You are a bad hombre."
Maria - the largest storm to hit the island in 90 years - has left more than half the island's residents without drinking water, destroyed roads and infrastructure and toppled power lines.
Mr Trump also met San Juan Mayor Carmen Yulin Cruz, whom he criticised over the weekend.
He had accused her of "poor leadership" after she said the Trump administration was "killing us with the inefficiency".
But on Tuesday, she said her meeting with White House staff was "productive".
Last month, Mr Trump visited Texas after Hurricane Harvey and Florida after Hurricane Irma.
Speaking to reporters on Tuesday, he praised his administration's response to Maria.
"In Texas and in Florida, we get an A plus," he said. "And I'll tell you what, I think we've done just as good in Puerto Rico."