A bugle and a whistle are essentially both tubes open at both ends. A bugle has no keys, yet you can play several notes on it. A whistle also has no keys, but it only plays a single note. Why is this?
What's the physics behind it?
On some types of whistle if you blow really hard you can get the second harmonic, sounding one octave higher than the fundamental. A recorder is essentially a whistle with the length of the resonating chamber controlled by the fingers, and you can very easily overblow an octave.
Brass instruments more easily play their overtones because you're in direct control of the vibration. Playing a brass instrument is essentially singing with your lips, with the instrument snapping the pitch to the nearest overtone. You don't have this kind of direct control over a whistle.
The reason that you can get multiple notes from a bugle is that you can vary your embouchure. If you tighten your mouth, and blow harder, you'll get a higher note because your lips move faster. The bugle is essentially an amplifier of the sound that you make with your lips. It can only amplify frequencies that it resonates to, which is why the bugle has a limited number of notes. (A trumpet has valves which in effect vary the size of the horn's airway, allowing it to resonate to different harmonic series.)
With a whistle, the embouchure is fixed. You blow in a hole. Another hole restricts the air flow coming out, causing the air to vibrate at a particular frequency which is a function of the volume of the inside of the whistle and the size and shape of the hole. If you blow harder you'll just affect the amplitude--you'll get a louder sound. (Contrast this with a slide whistle. By changing the size of the whistle, you get a different sized column of air, and so a different note. Also, a penny whistle gets different notes by stopping off different holes along the tube, which changes the size of the tube and hence the volume of air.)
A whistle with a much smaller resonating chamber has only a very small set of frequencies it resonates at. A bugle, much longer with a horn on one end, resonates at many frequencies. Both start with broadband noise, but the whistle can only resonate at one frequency, while the bugle can resonate at several. Therefore the bugler can adjust the broadband noise to get the frequency they are interested in.
Whistles and bugles produce sound in fundamentally different ways, however the result is the same - a relatively narrow but still broadband noise is introduced to the instrument's resonating cavity:
A whistle pushes fast moving air past slower air, producing vortices that create pressure waves. This results in broadband noise with a peak frequency. The chamber or tube which this noise is introduced to resonates at a specific frequency withing the broadband noise, and not only damps other adjacent frequencies, but reinforces the selected frequency. Notably, this broadband noise isn't very adjustable - you can blow faster or slower, but the design of the noise source limits the user's control over what the dominant noise frequency is.
A bugle player introduces broadband noise into the bugle by flowing air past the player's lips, which vibrate, modulating the air and creating the pressure waves. The user has a great deal of control in the dominant frequency introduced into the instrument. By adjusting the tightness of their lips, they can increase or decrease the frequency significantly.
When a wave is reflected back towards its source, if it's not in phase with the source, the reflection will damp or reduce the source. If it's in phase, it will reinforce the source.
In a whistle, the chamber or cavity is very simple, most often just a cylinder. It resonates at relatively few frequencies.
A bugle is a much more acoustically complicated instrument. Not only does the length of the tube create a long cavity which can resonate at many frequencies, but the bell at the end is a significant (and complex from a physics standpoint) part of the cavity. A theoretically "perfect" bugle would only resonate at the desired frequencies. Of course there are tradeoffs in the real world, and so the player still has significant work making sure they produce an initial noise that makes the desired note, but the bugle still damps most frequencies, and reinforces the desired frequencies.
As a point of information, the three-hole tabor pipe, used in combination with a small drum as a 'pipe and tabor', uses the harmonic series of the pipe to produce 1 and a half octaves and theoretically more starting on the octave harmonic (the fundamental is rarely used). The Galician Txistu is basically the same instrument.
You can reproduce the same effect on a standard tin whistle by holding the top 3 holes closed and varying the breath pressure whilst playing the bottom three holes. The compromises in hole size and positioning made to keep the standard 2 octaves in tune mean that the overtones get more and more out of tune as you get higher.