Those games are heavily influenced by two things: Japanese RPG and story heavy japanese games like visual novels, and western style RPGs and story heavy point-and-click dialogue heavy western PC games. The creators who loved those two genres during the 80s and 90s eventually grew up and are now making these story heavy western games. You have to be aware the media influence usually takes a decade or two to manifest, and japanese entertainment and media from the 1980s and 1990s have definitely influenced western creators the same way western media in the 1940s and 1950s influenced japanese artists in the 1960s and 1970s. I'm glad that in the world of art and entertainment, we're all influencing each other, and it will hopefully lead to a more peaceful future.