These swellings can form for several reasons, like wearing narrow shoes, having a family history of bunions, or even as a result of a foot injury. Bunions are caused by the malalignment of the bones in your feet. The bump that is formed can cause pain in shoes and with activity. Treatment can vary from padding and shoe recommendations to surgery.