So the mastodon.social privacy policy is ok, but if I were the maintainer I'd avoid recording any IP addresses. One thing to consider is that when you're a meganode both state and non-state organisations will become interested in your logs and will try to obtain them either explicitly, with goons showing up and making threats, or also less explicitly with implants and exfiltration or NSLs and gagging orders. If you don't record IPs then in the worst case there's not much that third parties can get.

Another factor to consider is that the demographic of fediverse folks probably includes a higher proportion of non-normative views and lifestyles than you might find in the silos. These non-normative people are precisely the groups which the really bad guys always seek to target. So as maintainer you should be concerned with your user's interests and practice metadata minimization which can limit any potential damage.
@bob wild guess: he might be required to keep them as per local laws? not sure why he would have added that otherwise
@hishamhm as @gargron said earlier, it's just a boilerplate privacy policy from elsewhere, and that's fair enough because rolling your own legal text is usually considered bad practice.

Data retention laws vary from one place to another, and may be an issue for some admins - especially if they have a lot of users.