If you want certain files to open by default in specific apps, then you need to change the default program settings:
Windows 11 and 10: Start > Settings > Apps > Default apps