Fourth answer
Introduction
Carl Woll pointed out in his solution that the series expansion around x = 0 is wrong for n=7. Alas, I have to confirm this and show it below. Hence my "proof" given in the answers 2 and 3 is incorrect, and probably its conclusion as well.
Hence it seems that the tide has swept back to my first answer.
As a little compensation for the to and fro the constructive part of this 4th answer will be a closer look at the cause of the "miracle".
This closer look paid, and I'm happy to present the explanation of the "magic seven" below.
Calculations
We restart with the x-dependent sum
s7a = Sum[(Sin[k x]/k)^7, {k, 1, \[Infinity]}]
(* Out[148]= 1/128 I (35 PolyLog[7, E^(-I x)] - 35 PolyLog[7, E^(I x)] -
21 PolyLog[7, E^(-3 I x)] + 21 PolyLog[7, E^(3 I x)] +
7 PolyLog[7, E^(-5 I x)] - 7 PolyLog[7, E^(5 I x)] -
PolyLog[7, E^(-7 I x)] + PolyLog[7, E^(7 I x)]) *)
Its value at x=1 is
N[s7a /. x -> 1, 20]
(* Out[160]= 0.30272435072915288381 + 0.*10^-21 I *)
Whereas my value was different
N[5887 \[Pi] /23040 - 1/2, 20]
(* Out[161]= 0.30271510206957954839 *)
This difference is due to the non analyticity. This can be seen in the 6th derivative
s7ap = D[s7a, {x, 6}]
(* Out[152]= 1/128 I (35 Log[1 - E^(-I x)] - 35 Log[1 - E^(I x)] -
15309 Log[1 - E^(-3 I x)] + 15309 Log[1 - E^(3 I x)] +
109375 Log[1 - E^(-5 I x)] - 109375 Log[1 - E^(5 I x)] -
117649 Log[1 - E^(-7 I x)] + 117649 Log[1 - E^(7 I x)]) *)

We can see that the point x=1 is above the jump of the derivative which is located at x~=0.897 and has a size of about 2402. Hence the point x=1 cannot be reached from a series expansion about x=0.
Comparing the cases n=6 and n=7 in one plot shows the essential difference: for n=6 (and lower values not shown here) the jump is above x=1 whereas for n=7 (and higher values) the jump happens below x=1.
In other words: for n<=6 the point x=1 can be reached from a series expansion around x=0, for n>=7 not.

As a rather extreme case consider n=15

From this we can understand at least part of the "miracle" of the magic number 7.
Is is worthwhile to mention that the "miracle" seems to be a "quantum effect", as it does not apear in the continuous integral version.
Explanation of the magic seven
Continuing the study of the jumps in the (n-1)st derivative I found an explanation for the magic seven which can be summarized best with the comment of bbgodfrey who stated yesterday dryly:
"I believe that 7 is magic, because it is the first integer greater than 2 Pi."
(this was more than a belief, I believe).
In other words
"7 is magic because 2[Pi]/7<1<2[Pi]/6"
I have already seen in the graphs that at n=7 the jump occurs for the first time below x = 1.
Let us define this situation as the "magic moment" or the "miracle".
We shall now make this quantitave.
Let us take a closer look at the (n-1)st derrivative of the symmetric sums for n=6 and n=7.
First n=6
ss6xp = D[Sum[(Sin[k x]/k)^6, {k, -\[Infinity], \[Infinity]}], {x, 5}]
(* Out[760]= (1/6048)(4354560 x - 90720 I Log[1 - E^(-2 I x)] +
90720 I Log[1 - E^(2 I x)] + 1161216 I Log[1 - E^(-4 I x)] -
1161216 I Log[1 - E^(4 I x)] - 1469664 I Log[1 - E^(-6 I x)] +
1469664 I Log[1 - E^(6 I x)]) *)
This function has branch points in x where the argument of the log-function is zero. This happens the first time for x>0 when the exponent is an integer multiple of 2[Pi].
Since we have 3 summands in pairs we find three branch points $\beta$ at
\[Beta]6 = 2 \[Pi]/{2, 4, 6}
% // N
(* Out[690]= {\[Pi], \[Pi]/2, \[Pi]/3} *)
(* Out[691]= {3.14159, 1.5708, 1.0472} *)
Notice that all branch point positions are greater than 1.
Now for n=7 we have in the same manner
ss7xp = D[Sum[(Sin[k x]/k)^7, {k, -\[Infinity], \[Infinity]}], {x, 6}]
(* Out[761]= -5040 x + 2 (5040 x +
1/128 I (35 Log[1 - E^(-I x)] - 35 Log[1 - E^(I x)] -
15309 Log[1 - E^(-3 I x)] + 15309 Log[1 - E^(3 I x)] +
109375 Log[1 - E^(-5 I x)] - 109375 Log[1 - E^(5 I x)] -
117649 Log[1 - E^(-7 I x)] + 117649 Log[1 - E^(7 I x)])) *)
We find four branchpoints are at
\[Beta]7 = 2 \[Pi]/{1, 3, 5, 7}
% // N
(* Out[766]= {2 \[Pi], (2 \[Pi])/3, (2 \[Pi])/5, (2 \[Pi])/7} *)
(* Out[767]= {6.28319, 2.0944, 1.25664, 0.897598} *)
The last one position is less that 1 so that a jump occurs below 1.
Now that we have understood why at n=7 something new happens and what it is, we need to explore the consequences.
The numerical consequence is the most obvious, and has been pointed out by several contributers here (see calculations above).
It remains to be made plausible that the structure of the sum s7 at x=1 is so different from that below n=7.
My plan is to invert the argument asking why the result is so simple for small n, and identify the cancelling mechanism.
Third answer
It's not a "miracle" in mathematics, it's a bug in Mathematica !
Introduction
This can be shown even simpler ! The results of the second answer remain valid, but the calculation is now much shorter, and it is left to Mathematica (with the usual level of assistance from the user).
This answer is completely sufficient to prove the existence of the bug by calculating the exact value of the sum for n=7. As the most probable cause of the bug we identify the simplification procedure.
A short list of the correct results is added for reference.
Calculations
The trick is again to introduce a parameter x writing Sin[x k] instead of Sin[k], and letting x to 1 in the end.
In fact, Mathematica immediately finds the sum with a parameter x:
s7a = Sum[(Sin[k x]/k)^7, {k, 1, \[Infinity]}]
(* Out[40]= 1/128 I (35 PolyLog[7, E^(-I x)] - 35 PolyLog[7, E^(I x)] -
21 PolyLog[7, E^(-3 I x)] + 21 PolyLog[7, E^(3 I x)] +
7 PolyLog[7, E^(-5 I x)] - 7 PolyLog[7, E^(5 I x)] -
PolyLog[7, E^(-7 I x)] + PolyLog[7, E^(7 I x)]) *)
In order to simplify this we use Series[] as before, giving
Series[s7, {x, 0, 10}] // Normal
(* Out[46]= (5887 \[Pi] x^6)/23040 - x^7/2 + (
7 \[Pi] x^6 Floor[(\[Pi] - Arg[-((-1 + E^(I x))/x)] - Arg[x])/(
2 \[Pi])])/9216 -
...
+ (
117649 \[Pi] x^6 Floor[(\[Pi] -
Arg[(E^(-7 I x) (-1 + E^(7 I x)))/x] - Arg[x])/(2 \[Pi])])/46080 *)
here we have dropped some terms from display.
Now we can simplify the expression finally with the result
Simplify[Series[s7, {x, 0, 10}] // Normal, x > 0]
(* Out[47]= (5887 \[Pi] x^6)/23040 - x^7/2 *)
which for x->1 gives us the correct result instead of the the buggy (former"miraculous") s[7].
This result supports strongly my suspicion of the OP that the error at n=7 is due to a switch in the strategy of simplification of the correct intermediate result with the PolyLogs.
It should now be easy for the Wolfram crew to detect the weak point and change it, perhaps even in the way presented here.
Summary of correct results
The results are given here in the symmetric form
$$i_s(n)=\int_{-\infty}^\infty \left(\frac{\sin (k)}{k}\right)^n \,dx$$
$$s_s(n)=\sum_{k=-\infty}^\infty \left(\frac{\sin (k)}{k}\right)^n$$
We have $i_s(n)=s_s(n)$, i.e. sum and integral are equal. They are related to the quantities used here before by $s_s(n) = 2 s(n) -1, i_s(n) = 2 i(n)$
The first 10 values are
$$\left\{\pi ,\pi ,\frac{3 \pi }{4},\frac{2 \pi }{3},\frac{115 \pi }{192},\frac{11 \pi }{20},\frac{5887 \pi }{11520},\frac{151 \pi }{315},\frac{259723 \pi }{573440},\frac{15619 \pi }{36288}\right\}$$
This series is contained in the OEIS (https://oeis.org/) as:
A002297 Numerator of (2/Pi)*Integral_{0..inf} (sin x / x)^n dx.
A002298 Denominator of (2/Pi)*Integral_{0..inf} (sin x / x)^n dx.
Here further values can be found.
Second answer
Introduction and summary
Although my first answer is just one hour ago, I need to revise myself, and come back to what my intuition was from the beginning: it is definitely a bug !
In order to show this let us just calculate the sums with a transparent method devised/used by robjohn in a slightly different context here 3
To begin with, we repeat the definitions
sd[n_] := 1 + Sum[(Sin[k]/k)^n, {k, 1, \[Infinity]}]
We use sd[n] to designate the mathematical definition while s[n]
stands for the result of the Mathematica calculation.
The related integral is
i[n_] := 1/2 + Integrate[(Sin[k]/k)^n, {k, 0, \[Infinity]}]
We call sc[n]
the sums calculated in the following. And we shall show that
sc[n] = i[n] for n = 1..10 (and probably for any n>10)
s[k] != sc[k] for n = 7 (and probably for any n>7)
To make the bug manifest the case n=7 is sufficient.
Also this disenchants the presumed "miracle": it is not a miracle but a bug in Mathematica. Most probably (and naturally) also the statement in Wolfram Mathworld (see first answer) has the same root.
The calculations
We shall consider the more general sums
s1[n_, x_] := Sum[(Sin[k x]/k)^n, {k, 1, \[Infinity]}]
They are related to the sums defined in the OP by
s[n] == 1 + s1[n, x] /. x -> 1 (* not a MMA formula *)
For n=1
there should be no doubt that
s1[1, x]
(* Out[220]= 1/2 I (Log[1 - E^(I x)] - Log[E^(-I x) (-1 + E^(I x))]) *)
I use Series[] to simplify this expression (maybe some else can find the right simplification command)
Series[%, {x, 0, 5}] // Normal
(* Out[221]= \[Pi]/2 - x/2 *)
and
sc[1] = 1 + % /. x -> 1
(* Out[222]= 1/2 + \[Pi]/2 *)
This is in agreement with s1:
s[1] // Expand
(* Out[223]= 1/2 + \[Pi]/2 *)
Generalization of the procedure to higher powers is obvious.
As an example let us take n=3
First we need the 2nd derivative of a summand
D[((Sin[k x]/k))^3, {x, 2}] // Simplify
(* Out[190]= -((3 (Sin[k x] - 3 Sin[3 k x]))/(4 k)) *)
and now execute the sum
Sum[%, {k, 1, \[Infinity]}]
(* Out[191]= 3/8 I (-Log[1 - E^(I x)] + Log[E^(-I x) (-1 + E^(I x))] +
3 Log[1 - E^(3 I x)] - 3 Log[E^(-3 I x) (-1 + E^(3 I x))] *)
which is in fact
h = Series[%, {x, 0, 5}] // Normal
(* Out[192]= (3 \[Pi])/4 - 3 x *)
Now we integrate twice with respect to x
Integrate[h, x]
(* Out[182]= 3/4 (\[Pi] x - 2 x^2) *)
Integrate[%, x]
(* Out[183]= 3/4 ((\[Pi] x^2)/2 - (2 x^3)/3) *)
We can simplify this double integration as a simple Mathematica construct
h = (3 \[Pi])/4 - 3 x;
Do[h = Integrate[h, x], {2}]; h
(* Out[227]= 3/4 ((\[Pi] x^2)/2 - (2 x^3)/3) *)
Finally we let x->1
to obtain
sc[3] = 1 + % /. x -> 1 // Expand
(* Out[228]= 1/2 + (3 \[Pi])/8 *)
This is identical to s3
s[3] // Expand
(* Out[229]= 1/2 + (3 \[Pi])/8 *)
i[3]
(* Out[230]= 1/2 + (3 \[Pi])/8 *)
In the same manner we retrieve the agreed results for n=4 to 6.
Now we turn to the "magic" n = 7
The 6th derivative
D[(Sin[k x]/k)^7, {x, 6}] // Simplify
(* Out[231]= (7 (-5 Sin[k x] + 2187 Sin[3 k x] - 15625 Sin[5 k x] +
16807 Sin[7 k x]))/(64 k) *)
The sum
Sum[%, {k, 1, \[Infinity]}]
(* Out[232]= 7/128 I (-5 Log[1 - E^(I x)] + 5 Log[E^(-I x) (-1 + E^(I x))] +
2187 Log[1 - E^(3 I x)] - 2187 Log[E^(-3 I x) (-1 + E^(3 I x))] -
15625 Log[1 - E^(5 I x)] + 15625 Log[E^(-5 I x) (-1 + E^(5 I x))] +
16807 Log[1 - E^(7 I x)] - 16807 Log[E^(-7 I x) (-1 + E^(7 I x))])*)
The simplification
h = Series[%, {x, 0, 5}] // Normal
(* Out[233]= (5887 \[Pi])/32 - 2520 x *)
Now the 6-fold integration
Do[h = Integrate[h, {x, 0, y}] /. y -> x, {6}]; h
(* Out[234]= (5887 \[Pi] x^6)/23040 - x^7/2 *)
The result
sc[7] = 1 + % /. x -> 1
(* Out[235]= 1/2 + (5887 \[Pi])/23040 *)
is identical to
i[7]
(* Out[236]= 1/2 + (5887 \[Pi])/23040 *)
but clearly different from the direct Mathematica result in question
s7 = s[7]
(* Out[239]= 1 + (-23040 + 129423 \[Pi] - 201684 \[Pi]^2 + 144060 \[Pi]^3 -
54880 \[Pi]^4 + 11760 \[Pi]^5 - 1344 \[Pi]^6 + 64 \[Pi]^7)/46080
as can be seen easily from the structure but finally from the numerical values
N[1/2 + (5887 \[Pi])/23040, 10] - N[s7, 10]
(* Out[241]= -9.249*10^-6 *)
End of calculations
Contest on the magic 7
Unexpected a tacit contest was installed by two members of the community involved in this discussion, and I would like to present the first results
"Magic number 7" is a PrimeQ[7] :) – Mariusz Iwaniuk
I believe that 7 is magic, because it is the first integer greater than 2 Pi. - bbgodfrey
I would appreciate if others would join in.
First answer, 10.10.17 15:00
There has been a vivid discussion about this post in which I have tentatively asserted to have found a bug in an infinite sum. I'd like to summarize the status.
First of all: I agree now that it is not a bug, but that indeed there's a "miracle" happening at n=7.
My original conviction was based on the fact that the first 6 values of the sum had the simple structure $a + \pi b$ with rational $a$ and $b$, so why should n=7 have suddenly a much more complicated structure? and, furthermore, that these results are obtained by naively applying the Euler-Maclaurn formula, and - most of all - that I tend not to believe in miracles.
Three arguments convinced me of my error
The numerical calculation of John Doty who supplemented his solution in a comment with the information that the calculation was done with a high degreee of accuracy
The related discussion in MSE 1 in which the hint was given that indeed a "miracle" happens at n=7.
"Proof of authority" 2: Eric Weisstein writes "Amazingly, the pattern of these sums being equal to -1/2 plus a rational multiple of pi breaks down for the power 7." and he gives the result for s[7]
in my OP which Mathematica provides.
Still: Some explanation of the "Miracle" and the related "Magic number 7", some reason which should be easy to grasp would be nice to have.
References
1 https://math.stackexchange.com/questions/331404/how-to-prove-this-identity-pi-sum-limits-k-infty-infty-left-frac-sin
2 http://mathworld.wolfram.com/SincFunction.html
3 https://math.stackexchange.com/questions/453198/show-that-int-0-infty-frac-sin3xx3dx-frac3-pi8/453260#453260
1 + NSum[f[k]^7, {k, 1, \[Infinity]}, Method -> "AlternatingSigns", NSumTerms -> 10^5, WorkingPrecision -> 40]
.MaybeEuer-Maclaurin formula
not working for n=7 ? $\endgroup$