Simplify the following text for a Grade 10 native English-speaking person.
Original: It is made when potassium nitrate is reacted with hydrochloric acid , making nitric acid and potassium chloride .
Simplified: It is a by-product of the making of nitric acid from potassium nitrate and hydrochloric acid .