the funny part is the books actually answer this Harry knew Ron’s family was poor,but he also understood that simply handing Ron money could make things worse..in Goblet of Fire,when Ron gets those ancient second hand dress robes, Harry literally thinks he would “willingly have split all the money in his Gringotts vault with the Weasleys,” but knew they would never take it. Ron’s insecurity about Harry’s wealth was already a real issue,the books repeatedly show Ron feeling uncomfortable about being the poor friend while Harry has inherited a fortune.
and Harry actually does find a workaround,after winning 1,000 Galleons in the Triwizard Tournament,he gives the entire prize to Fred and George to start their joke shop,with one specific condition: “buy Ron some different dress robes and say they’re from you.”
so Harry absolutely noticed Ron was struggling he just knew Ron’s pride would make a direct handout humiliating,that’s one of those details the movies underplay..Harry wasn’t oblivious to Ron’s poverty,he was trying to help without making Ron feel like a charity case.