介词 for 表示“以……的价钱”,它既可指“以……的价钱(买某物)”,也可指“以……的价钱(卖某物)”,你的句子中 for 在此指“以……的价钱(卖某物)”,即你的句子意思是:
The hostels in Rome offer a bed in a dorm room for around $25 a night. 罗马的旅馆是在宿舍提供一张床,价格是每晚约25美元。
又如:
She sold the house for quite a lot of money. 她这栋房子卖了一大笔钱。
The Martins sold their house for about 1.4 million pounds. 马丁夫妇把他们的房子卖了 140 万英镑。
The doctor was prepared to do the operation for a large sum. 医生做这个手术需要收取高额费用。
注意 for 也可表示“以……的价钱(买某物)”,如:
I bought a book for £3. 我花3英镑买了一本书。
We got the bus back to Tange for 30 cents. 我们花了 30 美分坐公共汽车回到坦格。