Cost will be lower with your own design because you'll integrate other components on the same board. It needs power, probably battery backup too. It needs to control some coil of electromagnetic lock. Access control is more than just flashing LEDs.
It has IDE because ESP32 has IDE.