I have a different way of describing this so will add an additional answer. How I interpret any comment that "the DFT assumes the input is periodic" is that the resulting answer in the DFT will be identical to what we would get if the input waveform periodically repeated at the same original sampling rate (and not that the DFT has achieved consciousness and sentience), with some very important caveats that I will add here.
To be identical, we must consider only the resulting values at the original frequency locations, AND the DFT must be scaled by the total number of samples. Every time we repeat a sequence in time, the resulting DFT will have a zero inserted in between every original sample in frequency, with the number of zeros consistent with the number of repetitions of the time domain waveform. If we assume the sampling rate has not changed, the resulting values at the original frequency locations for the original sequence will grow by the number of repetitions. So if we scale by the total number of samples, then in the limit as the time domain approach infinity in both directions with a periodic input waveform, the resulting DFT will become a continuous function in frequency with the non-zero values identical to our original result. Note too interestingly that as the number of samples in the time domain increases (as we consider more and more repetitions in time), it will match the total number of samples in frequency from DC up to one sample less than the sampling rate: As we extend the time axis toward infinity; this maps to an infinite number of samples in this limited frequency range! (We can also show how there is a similar equivalence to periodicity in the frequency domain which would equivalently map to additional zeros in between the samples in the time domain, with the time domain in the limit also becoming a continuous function!).
I add a simple demonstration below to be very clear on the conditions where the resulting DFT is "identical" starting with the DFT of an example sequence given as [5, -4, 6, 6, -4]. For convenience, I chose an example sequence that would always result in a real DFT.
The resulting DFT scaled by the total number of samples is given by:
$$X[k] = \frac{1}{N}\sum_{n=0}^{N-1}x[n]e^{-j2 \pi n k/N}$$
and is plotted below. I plotted using fftshift
which centers the spectrum on DC ($k=0$) and is equivalent to indexing through k as given below:
X[k] for x[n] = [5, -4, 6, 6, -4], with n=[0,1,2,3,4] and k = [-2,-1,0,1,2]
![DFT for x[n]](https://i.stack.imgur.com/hGK3t.png)
Below shows the result for another sequence that is this same sequence repeated three times as
x[n] = [5, -4, 6, 6, -4, 5, -4, 6, 6, -4, 5, -4, 6, 6, -4]:
DFT Repeating Same Sequence 3 Times

To make it clear under what condition the result is equivalent, I scaled the index so that what is shown on the horizontal axis is the same frequency value, consistent with a condition that the sampling rate hasn't changed. Thus all the original frequencies from the original sequence will have the same result, as long as the DFT itself is also scaled as described above.
And again after repeating the original sequence 9 times.
DFT Repeating Same Sequence 9 Times

Hopefully these examples make it clear under what is meant by the equivalence to a periodic time domain signal. We see how in the limit the DFT result for an actual periodic signal that extended to $\pm \infty$ would be a continuous function in frequency (and in the limit become a Discrete Time Fourier Transform or DTFT, but in this case for an actual periodic waveform where a DTFT for a finite length sequence would extend the time index to infinity with zero padding, still resulting in a continuous function in frequency).
The stated equivalence is with the result for the original frequency locations specifically: If we maintain the same sampling rate in time (simply repeat the original sequence periodically), and if we scale the DFT result by the total number of samples, then we can repeat the waveform any number of integer times and get the same result at each of the original frequencies (and zero elsewhere).