tight pants can rub on sensitive skin. if the skin is irritated it becomes more prone to an infection from surface bacteria. a boil can be staph so this should be promptly treated. you may find looser jeans more comfortable until this boil resolves.
could tight jeans cause a boil to appear in the upper inner thigh?