The answer is $\frac{n+1}{n}$.
Achievability: This can be achieved with the grid below for $n=6$ which can easily be generalized.
[asy][asy]
unitsize(1.5cm);
defaultpen(font("OT1","cmss","m","n"));
defaultpen(fontsize(10pt));
string[][] x = {
{"1","6","11","16","21"},
{"22","2","7","12","17"},
{"18","23","3","8","13"},
{"14","19","24","4","9"},
{"10","15","20","25","5"},
};
for (int i=0; i<6; ++i) {
draw((i,0)--(i,5));
draw((0,i)--(5,i));
}
path p = (0,0)--(1,0)--(1,1)--(0,1)--cycle;
for(int k = 0; k<5; ++k){
for(int l = 0; l<5; ++l){
if(x[k][l]!="0"){
label(scale(2)*(x[k][l]),(l+0.5,-k+4.5));
};
};
};
[/asy][/asy]
We have that every row obviously has a minimum ratio of $\frac{n+1}{n}$. For the columns, note that the $k$th column is $k,n+k-1, \cdots , (k-1)n+1, (k+1)n, (k+2)n-1, \cdots , n^2-(n-k-1)$. After investigating some edge cases and the main case, we can get that this grid has every ratio bigger than $ \frac{n+1}{n}$.
Bound: Assume not. Consider the numbers in $\{n^2-n+1, n^2-n+2, \cdots , n^2\}$. If two of these are in the same row or column, then their ratio is at most $\frac{n^2}{n^2-n+1}<\frac{n+1}{n}$. Thus we must have that they are all in different columns and rows. We have that $n^2-n$ must share a row or column with $2$ numbers, and the minimum must be less than or equal to $n^2-1$, so the ratio is at most $\frac{n^2-1}{n^2-n}=\frac{n+1}{n}$, so we are done.