If children take certain antibiotics - such as ones inside tetracycline family - during the time permanent teeth are developing, a similar discoloration can occur.
But bear in mind that your sensitivity will probably increase again during or after the therapy, so I suggest choosing a mid strength whitening gel to remove it quickly if discomfort gets unbearable.