The Marvel Cinematic Universe, or the MCU for short, used a variety of storytelling techniques to make its heroes more likable. The costumed Avengers were written with relatable and realistic flaws in mind, such as Tony Stark's conceited ways and Star-Lord's longing for a real family, and Spider-Man was written like that, too. In fact, Spider-Man may be the MCU's most sympathetic character of all.
Source:https://www.cbr.com/spider-man-mcu-most-sympathetic-character/