And why did entering the wrong coords cause a terrain alert?
Because one of the modes of EGPWS Warnings works of the database with terrain data. That DB is used in connection with the aircraft POSITION that needs to be ENTERED. So, if you enter a wrong position happened to be close enough to some mountains, and then try to fly the AC, EGPWS SHOULD trigger "terrain terrain" warning.