Yes, this is a case of repeated/correlated outcomes on the same location.
For predictions, you can exploit that you have previous information from the same location. You can try to do this in multiple ways:
Firstly, by lagged features (e.g. number of X in the previous year) and secondly, by using the location as a categorical feature (different algorithms differ in their treatment of such features, one-hot-encoding can be pretty inefficient, while other alternatives can be better - e.g. embedding layers in neural networks, which are a bit like multi-dimensional random effects in GLMs). Cross-validating properly how much some of these should matter actually requires a good number of locations (rather than just lots of observations - i.e. new locations may be more valuable than more observations about locations you already have data for). Thirdly, there's methods that explicitly try to model the time series nature of the data such as time-series methods (AR, MA, ARMA, ARIMA etc. models, or neural networks like LSTMs, transformers and so on).
On the other hand, this also means that you have less information than it seems (i.e. observations on totally different observations would be better for predicting something about a new location, while for predicting about a location in the training data this is not necessarily a downside). You should certainly make sure that depending on what you are trying to predict that your cross-validation scheme (or bootstrapping theme, or whatever else you are using) is appropriate (e.g. if you want to predict for new locations, then whole locations should be either in your training fold or in the validation fold, never split across the two).
If you are only interested in pure prediction and do not care about the uncertainty around your prediction, then doings some of the things that exploit knowledge about the location (e.g. lagged features, categorical feature for location etc.) should be done. However, where at least some of the approaches may break-down a bit is when trying to quantify the uncertainty around predictions (e.g. standard errors, prediction intervals).