I think the initiators of the ICO project set the initial price themselves. Then traders on the crypto exchange start to raise or lower it.
This is clearly seen on decentralized exchanges, where the difference between buying and selling can be hundreds of percent.