The best explanation for the presence of marine fossils on mountains far from any ocean or sea is: The mountains were made out of land that was once below the ocean.
This explanation aligns with geological processes such as plate tectonics, where tectonic plates push up the ocean floor to create mountains, bringing marine sediments and fossils with them.