Thanks for choosing HealthcareMagic forum.
After an injury
the development of a painless swelling near the muscles is because of a collection of blood as a result of the injury called as haematoma
.The swelling will remain as such or may get infected. You need to get it drained surgically.
Dr. Rakhi Tayal