The only possible answer is: you don't have that circuit.
So one of the following must be true:
- Your transistor isn't actually 2N2222,
- Your circuit is not wired as you think,
- Your voltage isn't 22 V,
- You have something (unsuitable) connected at output,
- Faulty test equipment is leading you completely astray.
Obviously the easiest things to check are the wiring, the resistor values, and the voltage. Comments have made the suggestion that you have a counterfeit part -- certainly a possibility. Also of course if the test equipment is faulty, Vout could be something else. If you're getting surprising results: always check the test equipment. In this particular case, given that the transistor is burning up, it's pretty evident something is very wrong.
The first thing to check is the pinout, both from datasheet for the exact part number, and by confirming on the actual device.
Variant Pinout
Another possibility is that your transistor has a different pinout than you're expecting, such as the P-variant:
From Wikipedia
Which would mean you actually have the following, which has VEB of 22 V, where the limit is 6 V (see datasheet portion below).
simulate this circuit – Schematic created using CircuitLab
Identifying Pins
The classic method for identifying the pins of an out-of-circuit NPN transistor is to measure the voltage drop with the diode-mode of a multimeter. You expect approximately 0.6 V measuring from B to C and from B to E, and OL in all the other pairings. The one with the slightly larger drop is the emitter. The 2N3904 I just measured gave 0.664 V and 0.684 V. (Sorry, no 2N2222 to hand.)
I recommend you try this on your parts which are burning up and see if you can confirm the pinout.
Datasheet Fragment
From datasheet