Fi also marks a place, but a locative phrase in a legal formula does not necessarily become a condition restricting the act to that location.
«أنت طالق في مكة»
You are divorced in Mecca.
In the specific doctrinal example, the text does not make presence in Mecca a prerequisite to the effect. Thus identifying a locative phrase and treating it as a legal condition are different interpretive operations.