It sounds to me like the rats live somewhere else (probably in the sewers) & just visit you every so often to look for food,
it may also be that they are either regularly attracted to your area by something, or on the other hand maybe driven from where they usually live by something else happening, if that makes sense to you.
Rats are very smart & will travel quite a long way to get food, a few years ago when we had snow I spotted one going back & forth and was able to follow it's track for about 150m from my bird feeders, down the lane, through a hedge, across 2 neighbours driveways & under an old shed in the corner of a field.
If you put food out as bait that will continue to attract them, If you want them gone it sounds like a job for the local council although I have no idea how such things work in your Country.